home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / web2c.kpathsea-2.4.help < prev    next >
Text File  |  1994-10-28  |  108KB  |  3,596 lines

  1. ftp.cs.umb.edu:pub/tex/web2c.kpathsea-2.4.help, 28oct94.
  2.  
  3. This patch will allow you to take advantage of kpathsea-2.4's
  4. improvements over kpathsea-1.8 (faster path searching, runtime
  5. configuration files, numerous bug fixes, etc.---see kpathsea/NEWS).
  6. It will work only with the version of kpathsea supplied with
  7. dviljk-2.3, dvipsk-5.58c, and xdvik-18d.  It will not work with
  8. previous or future versions of kpathsea, at least not without
  9. modification.  Use this patch at your own risk; it may introduce some
  10. new bugs into your TeX or MF.  You should apply it only if you are
  11. prepared to debug and fix any unexpected problems which might occur.
  12.  
  13. Please direct questions about this patch to the tex-k@cs.umb.edu
  14. mailing list (in other words, not to kb@cs.umb.edu).  Thanks.
  15.  
  16. Here are the instructions for upgrading web2c-6.1 to work with
  17. kpathsea-2.4.
  18.  
  19. 1.  Fetch one of the following tar files, `dviljk-2.3.tar.gz',
  20.     `dvipsk-5.58c.tar.gz', or `xdvik-18d.tar.gz', from your nearest
  21.     CTAN archive (use `finger ctan_us@ftp.shsu.edu' to get a list of
  22.     CTAN archives and their mirrors).  It does not matter which tar
  23.     file you fetch since they all have the same version of kpathsea.
  24.     If you don't plan to build and install dviljk, dvipsk, or xdvik,
  25.     you might as well get the smallest tar file: `xdvik-18d.tar.gz'.
  26.  
  27. 2.  Fetch the tar files `web-6.1.tar.gz' and `web2c-6.1.tar.gz' from
  28.     your nearest CTAN archive.
  29.  
  30. 3.  Unpack all of the tar files in the same directory.  You will have
  31.     two new directories: web2c-6.1 and one of dviljk-2.3,
  32.     dvipsk-5.58c, or xdvik-18d depending on which tar file you chose
  33.     in step 1.
  34.  
  35. 4.  Move the subdirectory web2c-6.1/web2c into dviljk-2.3,
  36.     dvipsk-5.58c, or xdvik-18d:
  37.  
  38.     mv web2c-6.1/web2c xdvik-18d
  39.  
  40. 5.  Rename the directory now containing the web2c subdirectory to
  41.     web2c-6.1a or whichever name you choose:
  42.  
  43.     mv xdvik-18d web2c-6.1a
  44.  
  45. 6.  You don't need the remaining files in web2c-6.1 or the
  46.     subdirectories dviljk, dvipsk, or xdvik to build TeX and MF, so
  47.     you can delete them if you wish:
  48.  
  49.     rm -rf web2c-6.1
  50.     rm -rf web2c-6.1a/xdvik
  51.  
  52. 7.  Patch a few files in the web2c subdirectory.  The patch is
  53.     appended below.  First move into the directory containing the
  54.     web2c subdirectory and then run patch:
  55.  
  56.     cd web2c-6.1a
  57.     patch -p -s < web2c.kpathsea-2.4.help
  58.  
  59.     This patch was made so that it won't matter what you call the
  60.     directory containing the web2c subdirectory since you'll be inside
  61.     it before applying the patch.  You shouldn't get any output from
  62.     patch unless an error occurs.
  63.  
  64. 8.  Now follow the normal procedure for installation of web2c-6.1.
  65.     You will have to edit the fmts variable in web2c/Makefile.in if
  66.     you want to build another format besides tex.fmt.  If you want to
  67.     make the latex format as well, you will need to have all of the
  68.     latex input files installed somewhere in /usr/local/lib/texmf.  I
  69.     prefer to build and install the latex format and input files
  70.     separately (ftp to your nearest CTAN archive, cd to the directory
  71.     /tex-archive/macros/latex, get base.tar.gz and package.tar.gz, and
  72.     read the documentation therein for directions how to build and
  73.     install the latex format and input files).
  74.  
  75. *** web2c/Makefile.in.save    Thu Feb  3 04:47:59 1994
  76. --- web2c/Makefile.in    Fri Sep 23 23:45:44 1994
  77. ***************
  78. *** 76,79 ****
  79. --- 76,80 ----
  80.   bases = mf.base cmmf.base
  81.   fmts = tex.fmt latex.fmt 
  82. + fmts = tex.fmt
  83.   # slitex.fmt etex.fmt amslatex.fmt amstex.fmt texinfo.fmt inrstex.fmt
  84.   # picplus.fmt
  85. ***************
  86. *** 125,131 ****
  87.   # wlibs is substituted by web2c's configure, LIBS by general configure
  88.   # routines, and the others by AC_FIND_XTRA.
  89. ! x_include_flags = @x_include_flags@
  90. ! x_lib_flags = @x_lib_flags@
  91. ! x_extra_libs = @x_extra_libs@
  92.   wlibs = @wlibs@
  93.   LIBS = @LIBS@ $(extralibs)
  94. --- 126,132 ----
  95.   # wlibs is substituted by web2c's configure, LIBS by general configure
  96.   # routines, and the others by AC_FIND_XTRA.
  97. ! x_include_flags = @X_CFLAGS@
  98. ! x_lib_flags = @X_LIBS@
  99. ! x_extra_libs = @X_EXTRA_LIBS@
  100.   wlibs = @wlibs@
  101.   LIBS = @LIBS@ $(extralibs)
  102. *** web2c/configure.in.save    Tue Feb  1 14:42:20 1994
  103. --- web2c/configure.in    Sat Oct 15 15:32:23 1994
  104. ***************
  105. *** 33,37 ****
  106.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  107.   dnl the compiler.
  108. ! AC_DECLARE_YYTEXT
  109.   
  110.   echo checking for window system libraries
  111. --- 33,37 ----
  112.   dnl Must do this last, as the addition to DEFS in Autoconf 1.3 confuses
  113.   dnl the compiler.
  114. ! AC_YYTEXT_POINTER
  115.   
  116.   echo checking for window system libraries
  117. ***************
  118. *** 47,54 ****
  119.     AC_FIND_X
  120.     AC_FIND_XTRA
  121. !   if test -z "$Xextlib"; then
  122. !     AC_HAVE_LIBRARY(Xext, Xextlib=-lXext)
  123. !   fi
  124. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  125.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  126.   fi
  127. --- 47,51 ----
  128.     AC_FIND_X
  129.     AC_FIND_XTRA
  130. !   wlibs="-lXt $X_R6_LIBS -lX11 $wlibs"
  131.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  132.   fi
  133. *** web2c/configure.save    Tue Feb  1 14:42:36 1994
  134. --- web2c/configure    Thu Oct 27 22:47:24 1994
  135. ***************
  136. *** 1,16 ****
  137.   #!/bin/sh
  138.   # Guess values for system-dependent variables and create Makefiles.
  139. ! # Generated automatically using autoconf.
  140. ! # Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
  141.   
  142. ! # This program is free software; you can redistribute it and/or modify
  143. ! # it under the terms of the GNU General Public License as published by
  144. ! # the Free Software Foundation; either version 2, or (at your option)
  145.   # any later version.
  146.   
  147. ! # This program is distributed in the hope that it will be useful,
  148. ! # but WITHOUT ANY WARRANTY; without even the implied warranty of
  149. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  150. ! # GNU General Public License for more details.
  151.   
  152.   # You should have received a copy of the GNU General Public License
  153. --- 1,16 ----
  154.   #!/bin/sh
  155.   # Guess values for system-dependent variables and create Makefiles.
  156. ! # Generated automatically using autoconf version 1.11 
  157. ! # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  158.   
  159. ! # This configure script is free software; you can redistribute it and/or
  160. ! # modify it under the terms of the GNU General Public License as published
  161. ! # by the Free Software Foundation; either version 2, or (at your option)
  162.   # any later version.
  163.   
  164. ! # This script is distributed in the hope that it will be useful, but
  165. ! # WITHOUT ANY WARRANTY; without even the implied warranty of
  166. ! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  167. ! # Public License for more details.
  168.   
  169.   # You should have received a copy of the GNU General Public License
  170. ***************
  171. *** 18,132 ****
  172.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  173.   
  174. ! # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
  175. ! #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
  176. ! # Ignores all args except --srcdir, --prefix, --exec-prefix, and
  177. ! # --with-PACKAGE[=VALUE] unless this script has special code to handle it.
  178.   
  179. ! for arg
  180.   do
  181. -   # Handle --exec-prefix with a space before the argument.
  182. -   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  183. -   # Handle --host with a space before the argument.
  184. -   elif test x$next_host = xyes; then next_host=
  185. -   # Handle --prefix with a space before the argument.
  186. -   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  187. -   # Handle --srcdir with a space before the argument.
  188. -   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  189. -   else
  190. -     case $arg in
  191. -      # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  192. -      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  193. -     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  194. -      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  195. -     next_exec_prefix=yes ;;
  196. -      -gas | --gas | --ga | --g) ;;
  197. -      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  198. -      -host | --host | --hos | --ho | --h)
  199. -     next_host=yes ;;
  200. -      -nfp | --nfp | --nf) ;;
  201. -      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  202. -     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  203. -      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  204. -     next_prefix=yes ;;
  205. -      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  206. -     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  207. -      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  208. -     next_srcdir=yes ;;
  209. -      -with-* | --with-*)
  210. -        package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
  211. -        # Reject names that aren't valid shell variable names.
  212. -        if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  213. -          echo "configure: $package: invalid package name" >&2; exit 1
  214. -        fi
  215. -        package=`echo $package| sed 's/-/_/g'`
  216. -        case "$arg" in
  217. -          *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
  218. -          *) val=1 ;;
  219. -        esac
  220. -        eval "with_$package='$val'" ;;
  221.   
  222. !      -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
  223. !        verbose=yes ;;
  224.   
  225. !      *) ;;
  226.       esac
  227. !   fi
  228.   done
  229.   
  230. ! trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
  231. ! trap 'rm -f confdefs*' 0
  232.   
  233.   # NLS nuisances.
  234.   # These must not be set unconditionally because not all systems understand
  235.   # e.g. LANG=C (notably SCO).
  236. ! if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
  237. ! if test "${LANG+set}"   = 'set' ; then LANG=C;   export LANG;   fi
  238.   
  239. ! rm -f conftest* confdefs.h
  240.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  241.   echo > confdefs.h
  242. - compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  243.   
  244.   # A filename unique to this package, relative to the directory that
  245.   # configure is in, which we can look for to find out if srcdir is correct.
  246. ! unique_file=web2c/web2c.c
  247.   
  248.   # Find the source files, if location was not specified.
  249.   if test -z "$srcdir"; then
  250. !   srcdirdefaulted=yes
  251.     # Try the directory containing this script, then `..'.
  252. !   prog=$0
  253. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  254. !   test "X$confdir" = "X$prog" && confdir=.
  255. !   srcdir=$confdir
  256. !   if test ! -r $srcdir/$unique_file; then
  257.       srcdir=..
  258.     fi
  259.   fi
  260. ! if test ! -r $srcdir/$unique_file; then
  261. !   if test x$srcdirdefaulted = xyes; then
  262. !     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  263.     else
  264. !     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  265.     fi
  266. -   exit 1
  267.   fi
  268. ! # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  269. ! # But we can't avoid them for `..', to make subdirectories work.
  270. ! case $srcdir in
  271. !   .|/*|~*) ;;
  272. !   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  273. ! esac
  274.   
  275.   
  276. - # Save the original args to write them into config.status later.
  277. - configure_args="$*"
  278.   
  279.   
  280. --- 18,319 ----
  281.   # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  282.   
  283. ! # Save the original args to write them into config.status later.
  284. ! configure_args="$*"
  285.   
  286. ! # Only options that might do something get documented.
  287. ! ac_usage="Usage: configure [options] [host]
  288. ! Options: [defaults in brackets after descriptions]
  289. ! --build=BUILD        configure for building on BUILD [BUILD=HOST]
  290. ! --disable-FEATURE    do not include FEATURE (same as --enable-FEATURE=no)
  291. ! --enable-FEATURE[=ARG]    include FEATURE [ARG=yes]
  292. ! --exec-prefix=PREFIX    install host dependent files in PREFIX [/usr/local]
  293. ! --help            print this message
  294. ! --host=HOST        configure for HOST [guessed]
  295. ! --prefix=PREFIX        install host independent files in PREFIX [/usr/local]
  296. ! --quiet, --silent    do not print \`checking for...' messages
  297. ! --srcdir=DIR        find the sources in DIR [configure dir or ..]
  298. ! --target=TARGET        configure for TARGET [TARGET=HOST]
  299. ! --verbose        print results of checks
  300. ! --version        print the version of autoconf that created configure
  301. ! --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  302. ! --without-PACKAGE    do not use PACKAGE (same as --with-PACKAGE=no)
  303. ! --x-includes=DIR    X include files are in DIR
  304. ! --x-libraries=DIR    X library files are in DIR"
  305. ! # Initialize some variables set by options.
  306. ! # The variables have the same names as the options, with
  307. ! # dashes changed to underlines.
  308. ! build=NONE
  309. ! exec_prefix=
  310. ! host=NONE
  311. ! no_create=
  312. ! nonopt=NONE
  313. ! norecursion=
  314. ! prefix=
  315. ! program_prefix=
  316. ! program_suffix=
  317. ! program_transform_name=
  318. ! silent=
  319. ! srcdir=
  320. ! target=NONE
  321. ! verbose=
  322. ! x_includes=
  323. ! x_libraries=
  324. ! ac_prev=
  325. ! for ac_option
  326.   do
  327.   
  328. !   # If the previous option needs an argument, assign it.
  329. !   if test -n "$ac_prev"; then
  330. !     eval "$ac_prev=\$ac_option"
  331. !     ac_prev=
  332. !     continue
  333. !   fi
  334. !   # Accept (but ignore some of) the important Cygnus configure
  335. !   # options, so we can diagnose typos.
  336.   
  337. !   case "$ac_option" in
  338. !   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  339. !   *) ac_optarg= ;;
  340. !   esac
  341. !   case "$ac_option" in
  342. !   -build | --build | --buil | --bui | --bu | --b)
  343. !     ac_prev=build ;;
  344. !   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  345. !     build="$ac_optarg" ;;
  346. !   -disable-* | --disable-*)
  347. !     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  348. !     # Reject names that aren't valid shell variable names.
  349. !     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  350. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  351. !     fi
  352. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  353. !     eval "enable_${ac_feature}=no" ;;
  354. !   -enable-* | --enable-*)
  355. !     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  356. !     # Reject names that aren't valid shell variable names.
  357. !     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  358. !       echo "configure: $ac_feature: invalid feature name" >&2; exit 1
  359. !     fi
  360. !     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  361. !     case "$ac_option" in
  362. !       *=*) ;;
  363. !       *) ac_optarg=yes ;;
  364.       esac
  365. !     eval "enable_${ac_feature}='$ac_optarg'" ;;
  366. !   # For backward compatibility, recognize -exec-prefix and --exec_prefix.
  367. !   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. !   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. !   | --exec | --exe | --ex)
  370. !     ac_prev=exec_prefix ;;
  371. !   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. !   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. !   | --exec=* | --exe=* | --ex=*)
  374. !     exec_prefix="$ac_optarg" ;;
  375. !   -gas | --gas | --ga | --g)
  376. !     with_gas=yes ;; # Obsolete; use --with-gas.
  377. !   -help | --help | --hel | --he)
  378. !     cat << EOF
  379. ! $ac_usage
  380. ! EOF
  381. !     exit 0 ;;
  382. !   -host | --host | --hos | --ho)
  383. !     ac_prev=host ;;
  384. !   -host=* | --host=* | --hos=* | --ho=*)
  385. !     host="$ac_optarg" ;;
  386. !   -nfp | --nfp | --nf)
  387. !     with_fp=no ;; # Obsolete; use --without-fp.
  388. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  389. !   | --no-cr | --no-c)
  390. !     no_create=yes ;;
  391. !   -norecursion | --norecursion | --norecursio | --norecursi \
  392. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
  393. !     norecursion=yes ;;
  394. !   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  395. !     ac_prev=prefix ;;
  396. !   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  397. !     prefix="$ac_optarg" ;;
  398. !   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  399. !   | --program-pre | --program-pr | --program-p)
  400. !     ac_prev=program_prefix ;;
  401. !   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  402. !   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  403. !     program_prefix="$ac_optarg" ;;
  404. !   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  405. !   | --program-suf | --program-su | --program-s)
  406. !     ac_prev=program_suffix ;;
  407. !   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  408. !   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  409. !     program_suffix="$ac_optarg" ;;
  410. !   -program-transform-name | --program-transform-name \
  411. !   | --program-transform-nam | --program-transform-na \
  412. !   | --program-transform-n | --program-transform- \
  413. !   | --program-transform | --program-transfor \
  414. !   | --program-transfo | --program-transf \
  415. !   | --program-trans | --program-tran \
  416. !   | --progr-tra | --program-tr | --program-t)
  417. !     ac_prev=program_transform_name ;;
  418. !   -program-transform-name=* | --program-transform-name=* \
  419. !   | --program-transform-nam=* | --program-transform-na=* \
  420. !   | --program-transform-n=* | --program-transform-=* \
  421. !   | --program-transform=* | --program-transfor=* \
  422. !   | --program-transfo=* | --program-transf=* \
  423. !   | --program-trans=* | --program-tran=* \
  424. !   | --progr-tra=* | --program-tr=* | --program-t=*)
  425. !     program_transform_name="$ac_optarg" ;;
  426. !   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  427. !   | -silent | --silent | --silen | --sile | --sil)
  428. !     silent=yes ;;
  429. !   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  430. !     ac_prev=srcdir ;;
  431. !   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  432. !     srcdir="$ac_optarg" ;;
  433. !   -target | --target | --targe | --targ | --tar | --ta | --t)
  434. !     ac_prev=target ;;
  435. !   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  436. !     target="$ac_optarg" ;;
  437. !   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  438. !     verbose=yes ;;
  439. !   -version | --version | --versio | --versi | --vers)
  440. !     echo "configure generated by autoconf version 1.11"
  441. !     exit 0 ;;
  442. !   -with-* | --with-*)
  443. !     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  444. !     # Reject names that aren't valid shell variable names.
  445. !     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  446. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  447. !     fi
  448. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  449. !     case "$ac_option" in
  450. !       *=*) ;;
  451. !       *) ac_optarg=yes ;;
  452. !     esac
  453. !     eval "with_${ac_package}='$ac_optarg'" ;;
  454. !   -without-* | --without-*)
  455. !     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  456. !     # Reject names that aren't valid shell variable names.
  457. !     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  458. !       echo "configure: $ac_package: invalid package name" >&2; exit 1
  459. !     fi
  460. !     ac_package=`echo $ac_package| sed 's/-/_/g'`
  461. !     eval "with_${ac_package}=no" ;;
  462. !   --x) with_x=yes ;; # Obsolete; use --with-x.
  463. !   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  464. !   | --x-incl | --x-inc | --x-in | --x-i)
  465. !     ac_prev=x_includes ;;
  466. !   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  467. !   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  468. !     x_includes="$ac_optarg" ;;
  469. !   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  470. !   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  471. !     ac_prev=x_libraries ;;
  472. !   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  473. !   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  474. !     x_libraries="$ac_optarg" ;;
  475. !   -*) echo "configure: $ac_option: invalid option; use --help to show usage" >&2; exit 1
  476. !     ;;
  477. !   *) 
  478. !     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  479. !       echo "configure: warning: $ac_option: invalid host type" >&2
  480. !     fi
  481. !     if test "x$nonopt" != xNONE; then
  482. !       echo "configure: can only configure for one host and one target at a time" >&2; exit 1
  483. !     fi
  484. !     nonopt="$ac_option"
  485. !     ;;
  486. !   esac
  487.   done
  488.   
  489. ! if test -n "$ac_prev"; then
  490. !   echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" >&2; exit 1
  491. ! fi
  492. ! trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  493. ! trap 'rm -fr confdefs* $ac_clean_files' 0
  494. ! # Save the original args if we used an alternate arg parser.
  495. ! ac_configure_temp="${configure_args-$*}"
  496. ! # Strip out --no-create and --norecursion so they don't pile up.
  497. ! configure_args=
  498. ! for ac_arg in $ac_configure_temp; do
  499. !   case "$ac_arg" in
  500. !   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  501. !   | --no-cr | --no-c) ;;
  502. !   -norecursion | --norecursion | --norecursio | --norecursi \
  503. !   | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
  504. !   *) configure_args="$configure_args $ac_arg" ;;
  505. !   esac
  506. ! done
  507.   
  508.   # NLS nuisances.
  509.   # These must not be set unconditionally because not all systems understand
  510.   # e.g. LANG=C (notably SCO).
  511. ! if test "${LC_ALL+set}" = 'set'; then LC_ALL=C; export LC_ALL; fi
  512. ! if test "${LANG+set}"   = 'set'; then LANG=C;   export LANG;   fi
  513.   
  514. ! # confdefs.h avoids OS command line length limits that DEFS can exceed.
  515. ! rm -rf conftest* confdefs.h
  516.   # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  517.   echo > confdefs.h
  518.   
  519.   # A filename unique to this package, relative to the directory that
  520.   # configure is in, which we can look for to find out if srcdir is correct.
  521. ! ac_unique_file=web2c/web2c.c
  522.   
  523.   # Find the source files, if location was not specified.
  524.   if test -z "$srcdir"; then
  525. !   ac_srcdir_defaulted=yes
  526.     # Try the directory containing this script, then `..'.
  527. !   ac_prog=$0
  528. !   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  529. !   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  530. !   srcdir=$ac_confdir
  531. !   if test ! -r $srcdir/$ac_unique_file; then
  532.       srcdir=..
  533.     fi
  534.   fi
  535. ! if test ! -r $srcdir/$ac_unique_file; then
  536. !   if test x$ac_srcdir_defaulted = xyes; then
  537. !     echo "configure: can not find sources in ${ac_confdir} or .." >&2; exit 1
  538.     else
  539. !     echo "configure: can not find sources in ${srcdir}" >&2; exit 1
  540.     fi
  541.   fi
  542. ! ac_ext=c
  543. ! # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  544. ! ac_cpp='${CPP}'
  545. ! ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS >/dev/null 2>&1'
  546.   
  547.   
  548.   
  549.   
  550. ***************
  551. *** 138,152 ****
  552.   if test -z "$CC"; then
  553.     # Extract the first word of `gcc', so it can be a program name with args.
  554. !   set dummy gcc; word=$2
  555. !   echo checking for $word
  556. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  557. !   for dir in $PATH; do
  558. !     test -z "$dir" && dir=.
  559. !     if test -f $dir/$word; then
  560.         CC="gcc"
  561.         break
  562.       fi
  563.     done
  564. !   IFS="$saveifs"
  565.   fi
  566.   test -z "$CC" && CC="cc"
  567. --- 325,339 ----
  568.   if test -z "$CC"; then
  569.     # Extract the first word of `gcc', so it can be a program name with args.
  570. !   set ac_dummy gcc; ac_word=$2
  571. !   test -n "$silent" || echo "checking for $ac_word"
  572. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  573. !   for ac_dir in $PATH; do
  574. !     test -z "$ac_dir" && ac_dir=.
  575. !     if test -f $ac_dir/$ac_word; then
  576.         CC="gcc"
  577.         break
  578.       fi
  579.     done
  580. !   IFS="$ac_save_ifs"
  581.   fi
  582.   test -z "$CC" && CC="cc"
  583. ***************
  584. *** 165,169 ****
  585.   rm -f conftest*
  586.   
  587. ! echo checking how to run the C preprocessor
  588.   if test -z "$CPP"; then
  589.     # This must be in double quotes, not single quotes, because CPP may get
  590. --- 352,356 ----
  591.   rm -f conftest*
  592.   
  593. ! test -n "$silent" || echo "checking how to run the C preprocessor"
  594.   if test -z "$CPP"; then
  595.     # This must be in double quotes, not single quotes, because CPP may get
  596. ***************
  597. *** 171,181 ****
  598.     # make.  It must be expanded now.
  599.     CPP="${CC-cc} -E"
  600. !   cat > conftest.c <<EOF
  601.   #include "confdefs.h"
  602.   #include <stdio.h>
  603.   Syntax Error
  604.   EOF
  605. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  606. ! if test -z "$err"; then
  607.     :
  608.   else
  609. --- 358,383 ----
  610.     # make.  It must be expanded now.
  611.     CPP="${CC-cc} -E"
  612. !   cat > conftest.${ac_ext} <<EOF
  613.   #include "confdefs.h"
  614.   #include <stdio.h>
  615.   Syntax Error
  616.   EOF
  617. ! # Some shells (Coherent) do redirections in the wrong order, so need
  618. ! # the parens.
  619. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  620. ! if test -z "$ac_err"; then
  621. !   :
  622. ! else
  623. !   rm -rf conftest*
  624. !   CPP="${CC-cc} -E -traditional-cpp"
  625. !   cat > conftest.${ac_ext} <<EOF
  626. ! #include "confdefs.h"
  627. ! #include <stdio.h>
  628. ! Syntax Error
  629. ! EOF
  630. ! # Some shells (Coherent) do redirections in the wrong order, so need
  631. ! # the parens.
  632. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  633. ! if test -z "$ac_err"; then
  634.     :
  635.   else
  636. ***************
  637. *** 185,189 ****
  638.   rm -f conftest*
  639.   fi
  640. ! test ".${verbose}" != "." && echo "    setting CPP to $CPP"
  641.   
  642.   # Make sure to not get the incompatible SysV /etc/install and
  643. --- 387,393 ----
  644.   rm -f conftest*
  645.   fi
  646. ! rm -f conftest*
  647. ! fi
  648. ! test -n "$verbose" && echo "    setting CPP to $CPP"
  649.   
  650.   # Make sure to not get the incompatible SysV /etc/install and
  651. ***************
  652. *** 192,246 ****
  653.   # or the AFS install, which mishandles nonexistent args, or
  654.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  655. ! # `staff'.  On most BSDish systems install is in /usr/bin, not /usr/ucb
  656. ! # anyway.  Sigh.
  657. ! if test "z${INSTALL}" = "z" ; then
  658. !   echo checking for install
  659. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  660. !   for dir in $PATH; do
  661. !     test -z "$dir" && dir=.
  662. !     case $dir in
  663. !     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  664.       *)
  665. !       if test -f $dir/installbsd; then
  666. !     INSTALL="$dir/installbsd -c" # OSF1
  667. !     INSTALL_PROGRAM='$(INSTALL)'
  668. !     INSTALL_DATA='$(INSTALL) -m 644'
  669. !     break
  670. !       fi
  671. !       if test -f $dir/install; then
  672. !     if grep dspmsg $dir/install >/dev/null 2>&1; then
  673. !       : # AIX
  674. !     else
  675. !       INSTALL="$dir/install -c"
  676. !       INSTALL_PROGRAM='$(INSTALL)'
  677. !       INSTALL_DATA='$(INSTALL) -m 644'
  678. !       break
  679.       fi
  680. !       fi
  681.         ;;
  682.       esac
  683.     done
  684. !   IFS="$saveifs"
  685.   fi
  686. - INSTALL=${INSTALL-cp}
  687.   test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  688. ! INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  689.   test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  690. ! INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  691.   test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  692.   
  693.   if test -z "$RANLIB"; then
  694.     # Extract the first word of `ranlib', so it can be a program name with args.
  695. !   set dummy ranlib; word=$2
  696. !   echo checking for $word
  697. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  698. !   for dir in $PATH; do
  699. !     test -z "$dir" && dir=.
  700. !     if test -f $dir/$word; then
  701.         RANLIB="ranlib"
  702.         break
  703.       fi
  704.     done
  705. !   IFS="$saveifs"
  706.   fi
  707.   test -z "$RANLIB" && RANLIB=":"
  708. --- 396,471 ----
  709.   # or the AFS install, which mishandles nonexistent args, or
  710.   # /usr/ucb/install on SVR4, which tries to use the nonexistent group
  711. ! # `staff', or /sbin/install on IRIX which has incompatible command-line
  712. ! # syntax.  Sigh.
  713. ! #
  714. ! #     On most BSDish systems install is in /usr/bin, not /usr/ucb
  715. ! #     anyway.
  716. ! # This turns out not to be true, so the mere pathname isn't an indication
  717. ! # of whether the program works.  What we really need is a set of tests for
  718. ! # the install program to see if it actually works in all the required ways.
  719. ! #
  720. ! # Avoid using ./install, which might have been erroneously created
  721. ! # by make from ./install.sh.
  722. ! if test -z "${INSTALL}"; then
  723. !   test -n "$silent" || echo "checking for a BSD compatible install"
  724. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  725. !   for ac_dir in $PATH; do
  726. !     case "$ac_dir" in
  727. !     ''|.|/etc|/sbin|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;;
  728.       *)
  729. !       # OSF1 and SCO ODT 3.0 have their own names for install.
  730. !       for ac_prog in installbsd scoinst install; do
  731. !         if test -f $ac_dir/$ac_prog; then
  732. !       if test $ac_prog = install &&
  733. !             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  734. !         # AIX install.  It has an incompatible calling convention.
  735. !         # OSF/1 installbsd also uses dspmsg, but is usable.
  736. !         :
  737. !       else
  738. !         INSTALL="$ac_dir/$ac_prog -c"
  739. !         break 2
  740. !       fi
  741.       fi
  742. !       done
  743.         ;;
  744.       esac
  745.     done
  746. !   IFS="$ac_save_ifs"
  747. ! fi
  748. ! if test -z "$INSTALL"; then
  749. !   # As a last resort, use the slow shell script.
  750. !   for ac_dir in ${srcdir} ${srcdir}/.. ${srcdir}/../..; do
  751. !     if test -f $ac_dir/install.sh; then
  752. !       INSTALL="$ac_dir/install.sh -c"; break
  753. !     fi
  754. !   done
  755. ! fi
  756. ! if test -z "$INSTALL"; then
  757. !   echo "configure: can not find install.sh in ${srcdir} or ${srcdir}/.. or ${srcdir}/../.." >&2; exit 1
  758.   fi
  759.   test -n "$verbose" && echo "    setting INSTALL to $INSTALL"
  760. ! # Use test -z because SunOS4 sh mishandles ${INSTALL_PROGRAM-'${INSTALL}'}.
  761. ! # It thinks the first close brace ends the variable substitution.
  762. ! test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  763.   test -n "$verbose" && echo "    setting INSTALL_PROGRAM to $INSTALL_PROGRAM"
  764. ! test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  765.   test -n "$verbose" && echo "    setting INSTALL_DATA to $INSTALL_DATA"
  766.   
  767.   if test -z "$RANLIB"; then
  768.     # Extract the first word of `ranlib', so it can be a program name with args.
  769. !   set ac_dummy ranlib; ac_word=$2
  770. !   test -n "$silent" || echo "checking for $ac_word"
  771. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  772. !   for ac_dir in $PATH; do
  773. !     test -z "$ac_dir" && ac_dir=.
  774. !     if test -f $ac_dir/$ac_word; then
  775.         RANLIB="ranlib"
  776.         break
  777.       fi
  778.     done
  779. !   IFS="$ac_save_ifs"
  780.   fi
  781.   test -z "$RANLIB" && RANLIB=":"
  782. ***************
  783. *** 248,253 ****
  784.   
  785.   
  786. ! echo checking for POSIXized ISC
  787.   if test -d /etc/conf/kconfig.d &&
  788.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  789. --- 473,477 ----
  790.   
  791.   
  792. ! test -n "$silent" || echo "checking for POSIXized ISC"
  793.   if test -d /etc/conf/kconfig.d &&
  794.     grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  795. ***************
  796. *** 258,266 ****
  797.   test -n "$verbose" && \
  798.   echo "    defining _POSIX_SOURCE"
  799. ! echo "#define" _POSIX_SOURCE 1 >> confdefs.h
  800.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  801. ! SEDDEFS="${SEDDEFS}\${SEDdA}_POSIX_SOURCE\${SEDdB}_POSIX_SOURCE\${SEDdC}1\${SEDdD}
  802. ! \${SEDuA}_POSIX_SOURCE\${SEDuB}_POSIX_SOURCE\${SEDuC}1\${SEDuD}
  803. ! \${SEDeA}_POSIX_SOURCE\${SEDeB}_POSIX_SOURCE\${SEDeC}1\${SEDeD}
  804.   "
  805.   }
  806. --- 482,490 ----
  807.   test -n "$verbose" && \
  808.   echo "    defining _POSIX_SOURCE"
  809. ! echo "#define" _POSIX_SOURCE "1" >> confdefs.h
  810.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  811. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}_POSIX_SOURCE\${ac_dB}_POSIX_SOURCE\${ac_dC}1\${ac_dD}
  812. ! \${ac_uA}_POSIX_SOURCE\${ac_uB}_POSIX_SOURCE\${ac_uC}1\${ac_uD}
  813. ! \${ac_eA}_POSIX_SOURCE\${ac_eB}_POSIX_SOURCE\${ac_eC}1\${ac_eD}
  814.   "
  815.   }
  816. ***************
  817. *** 274,289 ****
  818.   
  819.   
  820. ! echo checking for directory library header
  821. ! dirheader=
  822. ! if test -z "$dirheader"; then
  823. !   echo checking for dirent.h
  824. ! cat > conftest.c <<EOF
  825.   #include "confdefs.h"
  826.   #include <sys/types.h>
  827.   #include <dirent.h>
  828. ! int main() { exit(0); }
  829. ! int t() { DIR *dirp = 0; }
  830.   EOF
  831. ! if eval $compile; then
  832.     rm -rf conftest*
  833.     
  834. --- 498,513 ----
  835.   
  836.   
  837. ! test -n "$silent" || echo "checking for directory library header"
  838. ! ac_dir_header=
  839. ! if test -z "$ac_dir_header"; then
  840. !   test -n "$silent" || echo "checking for dirent.h"
  841. ! cat > conftest.${ac_ext} <<EOF
  842.   #include "confdefs.h"
  843.   #include <sys/types.h>
  844.   #include <dirent.h>
  845. ! int main() { return 0; }
  846. ! int t() { DIR *dirp = 0;; return 0; }
  847.   EOF
  848. ! if eval $ac_compile; then
  849.     rm -rf conftest*
  850.     
  851. ***************
  852. *** 291,316 ****
  853.   test -n "$verbose" && \
  854.   echo "    defining DIRENT"
  855. ! echo "#define" DIRENT 1 >> confdefs.h
  856.   DEFS="$DEFS -DDIRENT=1"
  857. ! SEDDEFS="${SEDDEFS}\${SEDdA}DIRENT\${SEDdB}DIRENT\${SEDdC}1\${SEDdD}
  858. ! \${SEDuA}DIRENT\${SEDuB}DIRENT\${SEDuC}1\${SEDuD}
  859. ! \${SEDeA}DIRENT\${SEDeB}DIRENT\${SEDeC}1\${SEDeD}
  860.   "
  861.   }
  862. !  dirheader=dirent.h
  863.   
  864.   fi
  865.   rm -f conftest*
  866.   fi
  867. ! if test -z "$dirheader"; then
  868. !   echo checking for sys/ndir.h
  869. ! cat > conftest.c <<EOF
  870.   #include "confdefs.h"
  871.   #include <sys/types.h>
  872.   #include <sys/ndir.h>
  873. ! int main() { exit(0); }
  874. ! int t() { DIR *dirp = 0; }
  875.   EOF
  876. ! if eval $compile; then
  877.     rm -rf conftest*
  878.     
  879. --- 515,540 ----
  880.   test -n "$verbose" && \
  881.   echo "    defining DIRENT"
  882. ! echo "#define" DIRENT "1" >> confdefs.h
  883.   DEFS="$DEFS -DDIRENT=1"
  884. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}DIRENT\${ac_dB}DIRENT\${ac_dC}1\${ac_dD}
  885. ! \${ac_uA}DIRENT\${ac_uB}DIRENT\${ac_uC}1\${ac_uD}
  886. ! \${ac_eA}DIRENT\${ac_eB}DIRENT\${ac_eC}1\${ac_eD}
  887.   "
  888.   }
  889. !  ac_dir_header=dirent.h
  890.   
  891.   fi
  892.   rm -f conftest*
  893.   fi
  894. ! if test -z "$ac_dir_header"; then
  895. !   test -n "$silent" || echo "checking for sys/ndir.h"
  896. ! cat > conftest.${ac_ext} <<EOF
  897.   #include "confdefs.h"
  898.   #include <sys/types.h>
  899.   #include <sys/ndir.h>
  900. ! int main() { return 0; }
  901. ! int t() { DIR *dirp = 0;; return 0; }
  902.   EOF
  903. ! if eval $ac_compile; then
  904.     rm -rf conftest*
  905.     
  906. ***************
  907. *** 318,343 ****
  908.   test -n "$verbose" && \
  909.   echo "    defining SYSNDIR"
  910. ! echo "#define" SYSNDIR 1 >> confdefs.h
  911.   DEFS="$DEFS -DSYSNDIR=1"
  912. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSNDIR\${SEDdB}SYSNDIR\${SEDdC}1\${SEDdD}
  913. ! \${SEDuA}SYSNDIR\${SEDuB}SYSNDIR\${SEDuC}1\${SEDuD}
  914. ! \${SEDeA}SYSNDIR\${SEDeB}SYSNDIR\${SEDeC}1\${SEDeD}
  915.   "
  916.   }
  917. !  dirheader=sys/ndir.h
  918.   
  919.   fi
  920.   rm -f conftest*
  921.   fi
  922. ! if test -z "$dirheader"; then
  923. !   echo checking for sys/dir.h
  924. ! cat > conftest.c <<EOF
  925.   #include "confdefs.h"
  926.   #include <sys/types.h>
  927.   #include <sys/dir.h>
  928. ! int main() { exit(0); }
  929. ! int t() { DIR *dirp = 0; }
  930.   EOF
  931. ! if eval $compile; then
  932.     rm -rf conftest*
  933.     
  934. --- 542,567 ----
  935.   test -n "$verbose" && \
  936.   echo "    defining SYSNDIR"
  937. ! echo "#define" SYSNDIR "1" >> confdefs.h
  938.   DEFS="$DEFS -DSYSNDIR=1"
  939. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSNDIR\${ac_dB}SYSNDIR\${ac_dC}1\${ac_dD}
  940. ! \${ac_uA}SYSNDIR\${ac_uB}SYSNDIR\${ac_uC}1\${ac_uD}
  941. ! \${ac_eA}SYSNDIR\${ac_eB}SYSNDIR\${ac_eC}1\${ac_eD}
  942.   "
  943.   }
  944. !  ac_dir_header=sys/ndir.h
  945.   
  946.   fi
  947.   rm -f conftest*
  948.   fi
  949. ! if test -z "$ac_dir_header"; then
  950. !   test -n "$silent" || echo "checking for sys/dir.h"
  951. ! cat > conftest.${ac_ext} <<EOF
  952.   #include "confdefs.h"
  953.   #include <sys/types.h>
  954.   #include <sys/dir.h>
  955. ! int main() { return 0; }
  956. ! int t() { DIR *dirp = 0;; return 0; }
  957.   EOF
  958. ! if eval $ac_compile; then
  959.     rm -rf conftest*
  960.     
  961. ***************
  962. *** 345,370 ****
  963.   test -n "$verbose" && \
  964.   echo "    defining SYSDIR"
  965. ! echo "#define" SYSDIR 1 >> confdefs.h
  966.   DEFS="$DEFS -DSYSDIR=1"
  967. ! SEDDEFS="${SEDDEFS}\${SEDdA}SYSDIR\${SEDdB}SYSDIR\${SEDdC}1\${SEDdD}
  968. ! \${SEDuA}SYSDIR\${SEDuB}SYSDIR\${SEDuC}1\${SEDuD}
  969. ! \${SEDeA}SYSDIR\${SEDeB}SYSDIR\${SEDeC}1\${SEDeD}
  970.   "
  971.   }
  972. !  dirheader=sys/dir.h
  973.   
  974.   fi
  975.   rm -f conftest*
  976.   fi
  977. ! if test -z "$dirheader"; then
  978. !   echo checking for ndir.h
  979. ! cat > conftest.c <<EOF
  980.   #include "confdefs.h"
  981.   #include <sys/types.h>
  982.   #include <ndir.h>
  983. ! int main() { exit(0); }
  984. ! int t() { DIR *dirp = 0; }
  985.   EOF
  986. ! if eval $compile; then
  987.     rm -rf conftest*
  988.     
  989. --- 569,594 ----
  990.   test -n "$verbose" && \
  991.   echo "    defining SYSDIR"
  992. ! echo "#define" SYSDIR "1" >> confdefs.h
  993.   DEFS="$DEFS -DSYSDIR=1"
  994. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}SYSDIR\${ac_dB}SYSDIR\${ac_dC}1\${ac_dD}
  995. ! \${ac_uA}SYSDIR\${ac_uB}SYSDIR\${ac_uC}1\${ac_uD}
  996. ! \${ac_eA}SYSDIR\${ac_eB}SYSDIR\${ac_eC}1\${ac_eD}
  997.   "
  998.   }
  999. !  ac_dir_header=sys/dir.h
  1000.   
  1001.   fi
  1002.   rm -f conftest*
  1003.   fi
  1004. ! if test -z "$ac_dir_header"; then
  1005. !   test -n "$silent" || echo "checking for ndir.h"
  1006. ! cat > conftest.${ac_ext} <<EOF
  1007.   #include "confdefs.h"
  1008.   #include <sys/types.h>
  1009.   #include <ndir.h>
  1010. ! int main() { return 0; }
  1011. ! int t() { DIR *dirp = 0;; return 0; }
  1012.   EOF
  1013. ! if eval $ac_compile; then
  1014.     rm -rf conftest*
  1015.     
  1016. ***************
  1017. *** 372,383 ****
  1018.   test -n "$verbose" && \
  1019.   echo "    defining NDIR"
  1020. ! echo "#define" NDIR 1 >> confdefs.h
  1021.   DEFS="$DEFS -DNDIR=1"
  1022. ! SEDDEFS="${SEDDEFS}\${SEDdA}NDIR\${SEDdB}NDIR\${SEDdC}1\${SEDdD}
  1023. ! \${SEDuA}NDIR\${SEDuB}NDIR\${SEDuC}1\${SEDuD}
  1024. ! \${SEDeA}NDIR\${SEDeB}NDIR\${SEDeC}1\${SEDeD}
  1025.   "
  1026.   }
  1027. !  dirheader=ndir.h
  1028.   
  1029.   fi
  1030. --- 596,607 ----
  1031.   test -n "$verbose" && \
  1032.   echo "    defining NDIR"
  1033. ! echo "#define" NDIR "1" >> confdefs.h
  1034.   DEFS="$DEFS -DNDIR=1"
  1035. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}NDIR\${ac_dB}NDIR\${ac_dC}1\${ac_dD}
  1036. ! \${ac_uA}NDIR\${ac_uB}NDIR\${ac_uC}1\${ac_uD}
  1037. ! \${ac_eA}NDIR\${ac_eB}NDIR\${ac_eC}1\${ac_eD}
  1038.   "
  1039.   }
  1040. !  ac_dir_header=ndir.h
  1041.   
  1042.   fi
  1043. ***************
  1044. *** 385,396 ****
  1045.   fi
  1046.   
  1047. ! echo checking for closedir return value
  1048. ! cat > conftest.c <<EOF
  1049.   #include "confdefs.h"
  1050.   #include <sys/types.h>
  1051. ! #include <$dirheader>
  1052.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1053.   EOF
  1054. ! eval $compile
  1055.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1056.     :
  1057. --- 609,620 ----
  1058.   fi
  1059.   
  1060. ! test -n "$silent" || echo "checking for closedir return value"
  1061. ! cat > conftest.${ac_ext} <<EOF
  1062.   #include "confdefs.h"
  1063.   #include <sys/types.h>
  1064. ! #include <$ac_dir_header>
  1065.   int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1066.   EOF
  1067. ! eval $ac_compile
  1068.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1069.     :
  1070. ***************
  1071. *** 400,408 ****
  1072.   test -n "$verbose" && \
  1073.   echo "    defining VOID_CLOSEDIR"
  1074. ! echo "#define" VOID_CLOSEDIR 1 >> confdefs.h
  1075.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1076. ! SEDDEFS="${SEDDEFS}\${SEDdA}VOID_CLOSEDIR\${SEDdB}VOID_CLOSEDIR\${SEDdC}1\${SEDdD}
  1077. ! \${SEDuA}VOID_CLOSEDIR\${SEDuB}VOID_CLOSEDIR\${SEDuC}1\${SEDuD}
  1078. ! \${SEDeA}VOID_CLOSEDIR\${SEDeB}VOID_CLOSEDIR\${SEDeC}1\${SEDeD}
  1079.   "
  1080.   }
  1081. --- 624,632 ----
  1082.   test -n "$verbose" && \
  1083.   echo "    defining VOID_CLOSEDIR"
  1084. ! echo "#define" VOID_CLOSEDIR "1" >> confdefs.h
  1085.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  1086. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}VOID_CLOSEDIR\${ac_dB}VOID_CLOSEDIR\${ac_dC}1\${ac_dD}
  1087. ! \${ac_uA}VOID_CLOSEDIR\${ac_uB}VOID_CLOSEDIR\${ac_uC}1\${ac_uD}
  1088. ! \${ac_eA}VOID_CLOSEDIR\${ac_eB}VOID_CLOSEDIR\${ac_eC}1\${ac_eD}
  1089.   "
  1090.   }
  1091. ***************
  1092. *** 411,416 ****
  1093.   rm -fr conftest*
  1094.   
  1095. ! echo checking for Xenix
  1096. ! cat > conftest.c <<EOF
  1097.   #include "confdefs.h"
  1098.   #if defined(M_XENIX) && !defined(M_UNIX)
  1099. --- 635,640 ----
  1100.   rm -fr conftest*
  1101.   
  1102. ! test -n "$silent" || echo "checking for Xenix"
  1103. ! cat > conftest.${ac_ext} <<EOF
  1104.   #include "confdefs.h"
  1105.   #if defined(M_XENIX) && !defined(M_UNIX)
  1106. ***************
  1107. *** 419,423 ****
  1108.   
  1109.   EOF
  1110. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1111.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  1112.     rm -rf conftest*
  1113. --- 643,647 ----
  1114.   
  1115.   EOF
  1116. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1117.   if egrep "yes" conftest.out >/dev/null 2>&1; then
  1118.     rm -rf conftest*
  1119. ***************
  1120. *** 435,440 ****
  1121.   fi
  1122.   
  1123. ! echo checking for ANSI C header files
  1124. ! cat > conftest.c <<EOF
  1125.   #include "confdefs.h"
  1126.   #include <stdlib.h>
  1127. --- 659,664 ----
  1128.   fi
  1129.   
  1130. ! test -n "$silent" || echo "checking for ANSI C header files"
  1131. ! cat > conftest.${ac_ext} <<EOF
  1132.   #include "confdefs.h"
  1133.   #include <stdlib.h>
  1134. ***************
  1135. *** 443,457 ****
  1136.   #include <float.h>
  1137.   EOF
  1138. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1139. ! if test -z "$err"; then
  1140.     rm -rf conftest*
  1141.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1142.   echo '#include "confdefs.h"
  1143. ! #include <string.h>' > conftest.c
  1144. ! eval "$CPP conftest.c > conftest.out 2>&1"
  1145.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1146.     rm -rf conftest*
  1147.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1148. ! cat > conftest.c <<EOF
  1149.   #include "confdefs.h"
  1150.   #include <ctype.h>
  1151. --- 667,683 ----
  1152.   #include <float.h>
  1153.   EOF
  1154. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1155. ! # the parens.
  1156. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1157. ! if test -z "$ac_err"; then
  1158.     rm -rf conftest*
  1159.     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1160.   echo '#include "confdefs.h"
  1161. ! #include <string.h>' > conftest.${ac_ext}
  1162. ! eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1163.   if egrep "memchr" conftest.out >/dev/null 2>&1; then
  1164.     rm -rf conftest*
  1165.     # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1166. ! cat > conftest.${ac_ext} <<EOF
  1167.   #include "confdefs.h"
  1168.   #include <ctype.h>
  1169. ***************
  1170. *** 464,478 ****
  1171.   
  1172.   EOF
  1173. ! eval $compile
  1174.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1175.     
  1176.   {
  1177.   test -n "$verbose" && \
  1178.   echo "    defining STDC_HEADERS"
  1179. ! echo "#define" STDC_HEADERS 1 >> confdefs.h
  1180.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1181. ! SEDDEFS="${SEDDEFS}\${SEDdA}STDC_HEADERS\${SEDdB}STDC_HEADERS\${SEDdC}1\${SEDdD}
  1182. ! \${SEDuA}STDC_HEADERS\${SEDuB}STDC_HEADERS\${SEDuC}1\${SEDuD}
  1183. ! \${SEDeA}STDC_HEADERS\${SEDeB}STDC_HEADERS\${SEDeC}1\${SEDeD}
  1184.   "
  1185.   }
  1186. --- 690,710 ----
  1187.   
  1188.   EOF
  1189. ! eval $ac_compile
  1190.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1191. +   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1192. + echo '#include "confdefs.h"
  1193. + #include <stdlib.h>' > conftest.${ac_ext}
  1194. + eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1"
  1195. + if egrep "free" conftest.out >/dev/null 2>&1; then
  1196. +   rm -rf conftest*
  1197.     
  1198.   {
  1199.   test -n "$verbose" && \
  1200.   echo "    defining STDC_HEADERS"
  1201. ! echo "#define" STDC_HEADERS "1" >> confdefs.h
  1202.   DEFS="$DEFS -DSTDC_HEADERS=1"
  1203. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}STDC_HEADERS\${ac_dB}STDC_HEADERS\${ac_dC}1\${ac_dD}
  1204. ! \${ac_uA}STDC_HEADERS\${ac_uB}STDC_HEADERS\${ac_uC}1\${ac_uD}
  1205. ! \${ac_eA}STDC_HEADERS\${ac_eB}STDC_HEADERS\${ac_eC}1\${ac_eD}
  1206.   "
  1207.   }
  1208. ***************
  1209. *** 480,483 ****
  1210. --- 712,719 ----
  1211.   
  1212.   fi
  1213. + rm -f conftest*
  1214. + fi
  1215.   rm -fr conftest*
  1216.   
  1217. ***************
  1218. *** 489,513 ****
  1219.   rm -f conftest*
  1220.   
  1221. ! for hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1222.                   string.h unistd.h
  1223.   do
  1224. ! trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  1225. ! echo checking for ${hdr}
  1226. ! cat > conftest.c <<EOF
  1227. ! #include "confdefs.h"
  1228. ! #include <${hdr}>
  1229. ! EOF
  1230. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1231. ! if test -z "$err"; then
  1232.     rm -rf conftest*
  1233.     
  1234.   {
  1235.   test -n "$verbose" && \
  1236. ! echo "    defining ${trhdr}"
  1237. ! echo "#define" ${trhdr} 1 >> confdefs.h
  1238. ! DEFS="$DEFS -D${trhdr}=1"
  1239. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trhdr}\${SEDdB}${trhdr}\${SEDdC}1\${SEDdD}
  1240. ! \${SEDuA}${trhdr}\${SEDuB}${trhdr}\${SEDuC}1\${SEDuD}
  1241. ! \${SEDeA}${trhdr}\${SEDeB}${trhdr}\${SEDeC}1\${SEDeD}
  1242.   "
  1243.   }
  1244. --- 725,751 ----
  1245.   rm -f conftest*
  1246.   
  1247. ! for ac_hdr in assert.h float.h limits.h memory.h pwd.h stdlib.h \
  1248.                   string.h unistd.h
  1249.   do
  1250. ! ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
  1251. ! test -n "$silent" || echo "checking for ${ac_hdr}"
  1252. ! cat > conftest.${ac_ext} <<EOF
  1253. ! #include "confdefs.h"
  1254. ! #include <${ac_hdr}>
  1255. ! EOF
  1256. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1257. ! # the parens.
  1258. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1259. ! if test -z "$ac_err"; then
  1260.     rm -rf conftest*
  1261.     
  1262.   {
  1263.   test -n "$verbose" && \
  1264. ! echo "    defining ${ac_tr_hdr}"
  1265. ! echo "#define" ${ac_tr_hdr} "1" >> confdefs.h
  1266. ! DEFS="$DEFS -D${ac_tr_hdr}=1"
  1267. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_hdr}\${ac_dB}${ac_tr_hdr}\${ac_dC}1\${ac_dD}
  1268. ! \${ac_uA}${ac_tr_hdr}\${ac_uB}${ac_tr_hdr}\${ac_uC}1\${ac_uD}
  1269. ! \${ac_eA}${ac_tr_hdr}\${ac_eB}${ac_tr_hdr}\${ac_eC}1\${ac_eD}
  1270.   "
  1271.   }
  1272. ***************
  1273. *** 519,552 ****
  1274.   
  1275.   
  1276. ! for func in memmove putenv
  1277.   do
  1278. ! trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  1279. ! echo checking for ${func}
  1280. ! cat > conftest.c <<EOF
  1281.   #include "confdefs.h"
  1282.   #include <ctype.h>
  1283. ! int main() { exit(0); }
  1284.   int t() { 
  1285.   /* The GNU C library defines this for functions which it implements
  1286.       to always fail with ENOSYS.  Some functions are actually named
  1287.       something starting with __ and the normal name is an alias.  */
  1288. ! #if defined (__stub_${func}) || defined (__stub___${func})
  1289.   choke me
  1290.   #else
  1291.   /* Override any gcc2 internal prototype to avoid an error.  */
  1292. ! extern char ${func}(); ${func}();
  1293.   #endif
  1294. !  }
  1295.   EOF
  1296. ! if eval $compile; then
  1297.     rm -rf conftest*
  1298.     {
  1299.   test -n "$verbose" && \
  1300. ! echo "    defining ${trfunc}"
  1301. ! echo "#define" ${trfunc} 1 >> confdefs.h
  1302. ! DEFS="$DEFS -D${trfunc}=1"
  1303. ! SEDDEFS="${SEDDEFS}\${SEDdA}${trfunc}\${SEDdB}${trfunc}\${SEDdC}1\${SEDdD}
  1304. ! \${SEDuA}${trfunc}\${SEDuB}${trfunc}\${SEDuC}1\${SEDuD}
  1305. ! \${SEDeA}${trfunc}\${SEDeB}${trfunc}\${SEDeC}1\${SEDeD}
  1306.   "
  1307.   }
  1308. --- 757,790 ----
  1309.   
  1310.   
  1311. ! for ac_func in bcopy memmove putenv
  1312.   do
  1313. ! ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  1314. ! test -n "$silent" || echo "checking for ${ac_func}"
  1315. ! cat > conftest.${ac_ext} <<EOF
  1316.   #include "confdefs.h"
  1317.   #include <ctype.h>
  1318. ! int main() { return 0; }
  1319.   int t() { 
  1320.   /* The GNU C library defines this for functions which it implements
  1321.       to always fail with ENOSYS.  Some functions are actually named
  1322.       something starting with __ and the normal name is an alias.  */
  1323. ! #if defined (__stub_${ac_func}) || defined (__stub___${ac_func})
  1324.   choke me
  1325.   #else
  1326.   /* Override any gcc2 internal prototype to avoid an error.  */
  1327. ! extern char ${ac_func}(); ${ac_func}();
  1328.   #endif
  1329. ! ; return 0; }
  1330.   EOF
  1331. ! if eval $ac_compile; then
  1332.     rm -rf conftest*
  1333.     {
  1334.   test -n "$verbose" && \
  1335. ! echo "    defining ${ac_tr_func}"
  1336. ! echo "#define" ${ac_tr_func} "1" >> confdefs.h
  1337. ! DEFS="$DEFS -D${ac_tr_func}=1"
  1338. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}${ac_tr_func}\${ac_dB}${ac_tr_func}\${ac_dC}1\${ac_dD}
  1339. ! \${ac_uA}${ac_tr_func}\${ac_uB}${ac_tr_func}\${ac_uC}1\${ac_uD}
  1340. ! \${ac_eA}${ac_tr_func}\${ac_eB}${ac_tr_func}\${ac_eC}1\${ac_eD}
  1341.   "
  1342.   }
  1343. ***************
  1344. *** 557,562 ****
  1345.   done
  1346.   
  1347. ! prog='/* Ultrix mips cc rejects this.  */
  1348.   typedef int charset[2]; const charset x;
  1349.   /* SunOS 4.1.1 cc rejects this.  */
  1350. --- 795,799 ----
  1351.   done
  1352.   
  1353. ! ac_prog='/* Ultrix mips cc rejects this.  */
  1354.   typedef int charset[2]; const charset x;
  1355.   /* SunOS 4.1.1 cc rejects this.  */
  1356. ***************
  1357. *** 596,607 ****
  1358.     const int foo = 10;
  1359.   }'
  1360. ! echo checking for lack of working const
  1361. ! cat > conftest.c <<EOF
  1362.   #include "confdefs.h"
  1363.   
  1364. ! int main() { exit(0); }
  1365. ! int t() { $prog }
  1366.   EOF
  1367. ! if eval $compile; then
  1368.     :
  1369.   else
  1370. --- 833,844 ----
  1371.     const int foo = 10;
  1372.   }'
  1373. ! test -n "$silent" || echo "checking for lack of working const"
  1374. ! cat > conftest.${ac_ext} <<EOF
  1375.   #include "confdefs.h"
  1376.   
  1377. ! int main() { return 0; }
  1378. ! int t() { $ac_prog; return 0; }
  1379.   EOF
  1380. ! if eval $ac_compile; then
  1381.     :
  1382.   else
  1383. ***************
  1384. *** 611,644 ****
  1385.   test -n "$verbose" && \
  1386.   echo "    defining" const to be empty
  1387. ! echo "#define" const  >> confdefs.h
  1388.   DEFS="$DEFS -Dconst="
  1389. ! SEDDEFS="${SEDDEFS}\${SEDdA}const\${SEDdB}const\${SEDdC}\${SEDdD}
  1390. ! \${SEDuA}const\${SEDuB}const\${SEDuC}\${SEDuD}
  1391. ! \${SEDeA}const\${SEDeB}const\${SEDeC}\${SEDeD}
  1392.   "
  1393.   }
  1394.   
  1395.   fi
  1396.   rm -f conftest*
  1397.   
  1398.   
  1399.   
  1400.   
  1401.   
  1402. ! for p in 'bison -y' byacc
  1403.   do
  1404.   if test -z "$YACC"; then
  1405. !   # Extract the first word of `$p', so it can be a program name with args.
  1406. !   set dummy $p; word=$2
  1407. !   echo checking for $word
  1408. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1409. !   for dir in $PATH; do
  1410. !     test -z "$dir" && dir=.
  1411. !     if test -f $dir/$word; then
  1412. !       YACC="$p"
  1413.         break
  1414.       fi
  1415.     done
  1416. !   IFS="$saveifs"
  1417.   fi
  1418.   
  1419. --- 848,989 ----
  1420.   test -n "$verbose" && \
  1421.   echo "    defining" const to be empty
  1422. ! echo "#define" const "" >> confdefs.h
  1423.   DEFS="$DEFS -Dconst="
  1424. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}const\${ac_dB}const\${ac_dC}\${ac_dD}
  1425. ! \${ac_uA}const\${ac_uB}const\${ac_uC}\${ac_uD}
  1426. ! \${ac_eA}const\${ac_eB}const\${ac_eC}\${ac_eD}
  1427. ! "
  1428. ! }
  1429. ! fi
  1430. ! rm -f conftest*
  1431. ! # GNU libc predefines `program_invocation_name'.
  1432. ! test -n "$silent" || echo "checking for program_invocation_name"
  1433. ! cat > conftest.${ac_ext} <<EOF
  1434. ! #include "confdefs.h"
  1435. ! int main() { return 0; }
  1436. ! int t() { main() { program_invocation_name = "hello"; }; return 0; }
  1437. ! EOF
  1438. ! if eval $ac_compile; then
  1439. !   rm -rf conftest*
  1440. !   
  1441. ! {
  1442. ! test -n "$verbose" && \
  1443. ! echo "    defining HAVE_PROGRAM_INVOCATION_NAME"
  1444. ! echo "#define" HAVE_PROGRAM_INVOCATION_NAME "1" >> confdefs.h
  1445. ! DEFS="$DEFS -DHAVE_PROGRAM_INVOCATION_NAME=1"
  1446. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}HAVE_PROGRAM_INVOCATION_NAME\${ac_dB}HAVE_PROGRAM_INVOCATION_NAME\${ac_dC}1\${ac_dD}
  1447. ! \${ac_uA}HAVE_PROGRAM_INVOCATION_NAME\${ac_uB}HAVE_PROGRAM_INVOCATION_NAME\${ac_uC}1\${ac_uD}
  1448. ! \${ac_eA}HAVE_PROGRAM_INVOCATION_NAME\${ac_eB}HAVE_PROGRAM_INVOCATION_NAME\${ac_eC}1\${ac_eD}
  1449.   "
  1450.   }
  1451.   
  1452.   fi
  1453.   rm -f conftest*
  1454.   
  1455.   
  1456. + # Some BSD systems, e.g., FreeBSD, do malloc/free's on the environment.
  1457. + # This test program is due to Mike Hibler <mike@cs.utah.edu>.
  1458. + test -n "$silent" || echo "checking for smart putenv"
  1459. + cat > conftest.${ac_ext} <<EOF
  1460. + #include "confdefs.h"
  1461. + int main() { return 0; }
  1462. + int t() { 
  1463. + #define VAR    "YOW_VAR"
  1464. + #define STRING1 "GabbaGabbaHey"
  1465. + #define STRING2 "Yow!!"        /* should be shorter than STRING1 */
  1466. + extern char *getenv (); /* in case char* and int don't mix gracefully */
  1467. + main ()
  1468. + {
  1469. +   char *str1, *rstr1, *str2, *rstr2;
  1470. +   str1 = getenv (VAR);
  1471. +   if (str1)
  1472. +     exit (1);
  1473. +   str1 = malloc (strlen (VAR) + 1 + strlen (STRING1) + 1);
  1474. +   if (str1 == 0)
  1475. +     exit (2);
  1476. +   strcpy (str1, VAR);
  1477. +   strcat (str1, "=");
  1478. +   strcat (str1, STRING1);
  1479. +   if (putenv (str1) < 0)
  1480. +     exit (3);
  1481. +   rstr1 = getenv (VAR);
  1482. +   if (rstr1 == 0)
  1483. +     exit (4);
  1484. +   rstr1 -= strlen (VAR) + 1;
  1485. +   if (strncmp (rstr1, VAR, strlen (VAR)))
  1486. +     exit (5);
  1487. +   str2 = malloc (strlen (VAR) + 1 + strlen (STRING2) + 1);
  1488. +   if (str2 == 0 || str1 == str2)
  1489. +     exit (6);
  1490. +   strcpy (str2, VAR);
  1491. +   strcat (str2, "=");
  1492. +   strcat (str2, STRING2);
  1493. +   if (putenv (str2) < 0)
  1494. +     exit (7);
  1495. +   rstr2 = getenv (VAR);
  1496. +   if (rstr2 == 0)
  1497. +     exit (8);
  1498. +   rstr2 -= strlen (VAR) + 1;
  1499. + #if 0
  1500. +   printf ("rstr1=0x%x, rstr2=0x%x\n", rstr1, rstr2);
  1501. +   /*
  1502. +    * If string from first call was reused for the second call,
  1503. +    * you had better not do a free on the first string!
  1504. +    */
  1505. +   if (rstr1 == rstr2)
  1506. +           printf ("#define\tSMART_PUTENV\n");
  1507. +   else
  1508. +           printf ("#undef\tSMART_PUTENV\n");
  1509. + #endif
  1510. +   exit (rstr1 == rstr2 ? 0 : 1);
  1511. + }
  1512. + ; return 0; }
  1513. + EOF
  1514. + if eval $ac_compile; then
  1515. +   rm -rf conftest*
  1516. +   
  1517. + {
  1518. + test -n "$verbose" && \
  1519. + echo "    defining "
  1520. + echo "#define"  "1" >> confdefs.h
  1521. + DEFS="$DEFS -D=1"
  1522. + ac_sed_defs="${ac_sed_defs}\${ac_dA}\${ac_dB}\${ac_dC}1\${ac_dD}
  1523. + \${ac_uA}\${ac_uB}\${ac_uC}1\${ac_uD}
  1524. + \${ac_eA}\${ac_eB}\${ac_eC}1\${ac_eD}
  1525. + "
  1526. + }
  1527. +  (SMART_PUTENV)
  1528. + fi
  1529. + rm -f conftest*
  1530.   
  1531.   
  1532.   
  1533. ! for ac_prog in 'bison -y' byacc
  1534.   do
  1535.   if test -z "$YACC"; then
  1536. !   # Extract the first word of `$ac_prog', so it can be a program name with args.
  1537. !   set ac_dummy $ac_prog; ac_word=$2
  1538. !   test -n "$silent" || echo "checking for $ac_word"
  1539. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1540. !   for ac_dir in $PATH; do
  1541. !     test -z "$ac_dir" && ac_dir=.
  1542. !     if test -f $ac_dir/$ac_word; then
  1543. !       YACC="$ac_prog"
  1544.         break
  1545.       fi
  1546.     done
  1547. !   IFS="$ac_save_ifs"
  1548.   fi
  1549.   
  1550. ***************
  1551. *** 651,665 ****
  1552.   if test -z "$LEX"; then
  1553.     # Extract the first word of `flex', so it can be a program name with args.
  1554. !   set dummy flex; word=$2
  1555. !   echo checking for $word
  1556. !   IFS="${IFS=     }"; saveifs="$IFS"; IFS="${IFS}:"
  1557. !   for dir in $PATH; do
  1558. !     test -z "$dir" && dir=.
  1559. !     if test -f $dir/$word; then
  1560.         LEX="flex"
  1561.         break
  1562.       fi
  1563.     done
  1564. !   IFS="$saveifs"
  1565.   fi
  1566.   test -z "$LEX" && LEX="lex"
  1567. --- 996,1010 ----
  1568.   if test -z "$LEX"; then
  1569.     # Extract the first word of `flex', so it can be a program name with args.
  1570. !   set ac_dummy flex; ac_word=$2
  1571. !   test -n "$silent" || echo "checking for $ac_word"
  1572. !   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1573. !   for ac_dir in $PATH; do
  1574. !     test -z "$ac_dir" && ac_dir=.
  1575. !     if test -f $ac_dir/$ac_word; then
  1576.         LEX="flex"
  1577.         break
  1578.       fi
  1579.     done
  1580. !   IFS="$ac_save_ifs"
  1581.   fi
  1582.   test -z "$LEX" && LEX="lex"
  1583. ***************
  1584. *** 669,690 ****
  1585.   then
  1586.     case "$LEX" in
  1587. !   flex*) LIBS_save="${LIBS}"
  1588.   LIBS="${LIBS} -lfl"
  1589. ! have_lib=""
  1590. ! echo checking for -lfl
  1591. ! cat > conftest.c <<EOF
  1592.   #include "confdefs.h"
  1593.   
  1594. ! int main() { exit(0); }
  1595. ! int t() { main(); }
  1596.   EOF
  1597. ! if eval $compile; then
  1598.     rm -rf conftest*
  1599. !   have_lib="1"
  1600.   
  1601.   fi
  1602.   rm -f conftest*
  1603. ! LIBS="${LIBS_save}"
  1604. ! if test -n "${have_lib}"; then
  1605.      :; LEXLIB="-lfl"
  1606.   else
  1607. --- 1014,1035 ----
  1608.   then
  1609.     case "$LEX" in
  1610. !   flex*) ac_save_LIBS="${LIBS}"
  1611.   LIBS="${LIBS} -lfl"
  1612. ! ac_have_lib=""
  1613. ! test -n "$silent" || echo "checking for -lfl"
  1614. ! cat > conftest.${ac_ext} <<EOF
  1615.   #include "confdefs.h"
  1616.   
  1617. ! int main() { return 0; }
  1618. ! int t() { main();; return 0; }
  1619.   EOF
  1620. ! if eval $ac_compile; then
  1621.     rm -rf conftest*
  1622. !   ac_have_lib="1"
  1623.   
  1624.   fi
  1625.   rm -f conftest*
  1626. ! LIBS="${ac_save_LIBS}"
  1627. ! if test -n "${ac_have_lib}"; then
  1628.      :; LEXLIB="-lfl"
  1629.   else
  1630. ***************
  1631. *** 695,700 ****
  1632.     esac
  1633.   fi
  1634.   
  1635. ! echo checking for ln -s
  1636.   rm -f conftestdata
  1637.   if ln -s X conftestdata 2>/dev/null
  1638. --- 1040,1046 ----
  1639.     esac
  1640.   fi
  1641. + test -n "$verbose" && echo "    setting LEXLIB to $LEXLIB"
  1642.   
  1643. ! test -n "$silent" || echo "checking for ln -s"
  1644.   rm -f conftestdata
  1645.   if ln -s X conftestdata 2>/dev/null
  1646. ***************
  1647. *** 708,713 ****
  1648.   
  1649.   
  1650. ! echo checking for return type of signal handlers
  1651. ! cat > conftest.c <<EOF
  1652.   #include "confdefs.h"
  1653.   #include <sys/types.h>
  1654. --- 1054,1059 ----
  1655.   
  1656.   
  1657. ! test -n "$silent" || echo "checking for return type of signal handlers"
  1658. ! cat > conftest.${ac_ext} <<EOF
  1659.   #include "confdefs.h"
  1660.   #include <sys/types.h>
  1661. ***************
  1662. *** 717,734 ****
  1663.   #endif
  1664.   extern void (*signal ()) ();
  1665. ! int main() { exit(0); }
  1666. ! int t() { int i; }
  1667.   EOF
  1668. ! if eval $compile; then
  1669.     rm -rf conftest*
  1670.     
  1671.   {
  1672.   test -n "$verbose" && \
  1673. ! echo "    defining" RETSIGTYPE to be void
  1674. ! echo "#define" RETSIGTYPE void >> confdefs.h
  1675.   DEFS="$DEFS -DRETSIGTYPE=void"
  1676. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}void\${SEDdD}
  1677. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}void\${SEDuD}
  1678. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}void\${SEDeD}
  1679.   "
  1680.   }
  1681. --- 1063,1080 ----
  1682.   #endif
  1683.   extern void (*signal ()) ();
  1684. ! int main() { return 0; }
  1685. ! int t() { int i;; return 0; }
  1686.   EOF
  1687. ! if eval $ac_compile; then
  1688.     rm -rf conftest*
  1689.     
  1690.   {
  1691.   test -n "$verbose" && \
  1692. ! echo "    defining" RETSIGTYPE to be "void"
  1693. ! echo "#define" RETSIGTYPE "void" >> confdefs.h
  1694.   DEFS="$DEFS -DRETSIGTYPE=void"
  1695. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}void\${ac_dD}
  1696. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}void\${ac_uD}
  1697. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}void\${ac_eD}
  1698.   "
  1699.   }
  1700. ***************
  1701. *** 740,749 ****
  1702.   {
  1703.   test -n "$verbose" && \
  1704. ! echo "    defining" RETSIGTYPE to be int
  1705. ! echo "#define" RETSIGTYPE int >> confdefs.h
  1706.   DEFS="$DEFS -DRETSIGTYPE=int"
  1707. ! SEDDEFS="${SEDDEFS}\${SEDdA}RETSIGTYPE\${SEDdB}RETSIGTYPE\${SEDdC}int\${SEDdD}
  1708. ! \${SEDuA}RETSIGTYPE\${SEDuB}RETSIGTYPE\${SEDuC}int\${SEDuD}
  1709. ! \${SEDeA}RETSIGTYPE\${SEDeB}RETSIGTYPE\${SEDeC}int\${SEDeD}
  1710.   "
  1711.   }
  1712. --- 1086,1095 ----
  1713.   {
  1714.   test -n "$verbose" && \
  1715. ! echo "    defining" RETSIGTYPE to be "int"
  1716. ! echo "#define" RETSIGTYPE "int" >> confdefs.h
  1717.   DEFS="$DEFS -DRETSIGTYPE=int"
  1718. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}RETSIGTYPE\${ac_dB}RETSIGTYPE\${ac_dC}int\${ac_dD}
  1719. ! \${ac_uA}RETSIGTYPE\${ac_uB}RETSIGTYPE\${ac_uC}int\${ac_uD}
  1720. ! \${ac_eA}RETSIGTYPE\${ac_eB}RETSIGTYPE\${ac_eC}int\${ac_eD}
  1721.   "
  1722.   }
  1723. ***************
  1724. *** 754,759 ****
  1725.   
  1726.   
  1727. ! echo checking for unsigned characters
  1728. ! cat > conftest.c <<EOF
  1729.   #include "confdefs.h"
  1730.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1731. --- 1100,1105 ----
  1732.   
  1733.   
  1734. ! test -n "$silent" || echo "checking for unsigned characters"
  1735. ! cat > conftest.${ac_ext} <<EOF
  1736.   #include "confdefs.h"
  1737.   /* volatile prevents gcc2 from optimizing the test away on sparcs.  */
  1738. ***************
  1739. *** 769,773 ****
  1740.   }
  1741.   EOF
  1742. ! eval $compile
  1743.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1744.     
  1745. --- 1115,1119 ----
  1746.   }
  1747.   EOF
  1748. ! eval $ac_compile
  1749.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1750.     
  1751. ***************
  1752. *** 775,783 ****
  1753.   test -n "$verbose" && \
  1754.   echo "    defining __CHAR_UNSIGNED__"
  1755. ! echo "#define" __CHAR_UNSIGNED__ 1 >> confdefs.h
  1756.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1757. ! SEDDEFS="${SEDDEFS}\${SEDdA}__CHAR_UNSIGNED__\${SEDdB}__CHAR_UNSIGNED__\${SEDdC}1\${SEDdD}
  1758. ! \${SEDuA}__CHAR_UNSIGNED__\${SEDuB}__CHAR_UNSIGNED__\${SEDuC}1\${SEDuD}
  1759. ! \${SEDeA}__CHAR_UNSIGNED__\${SEDeB}__CHAR_UNSIGNED__\${SEDeC}1\${SEDeD}
  1760.   "
  1761.   }
  1762. --- 1121,1129 ----
  1763.   test -n "$verbose" && \
  1764.   echo "    defining __CHAR_UNSIGNED__"
  1765. ! echo "#define" __CHAR_UNSIGNED__ "1" >> confdefs.h
  1766.   DEFS="$DEFS -D__CHAR_UNSIGNED__=1"
  1767. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}__CHAR_UNSIGNED__\${ac_dB}__CHAR_UNSIGNED__\${ac_dC}1\${ac_dD}
  1768. ! \${ac_uA}__CHAR_UNSIGNED__\${ac_uB}__CHAR_UNSIGNED__\${ac_uC}1\${ac_uD}
  1769. ! \${ac_eA}__CHAR_UNSIGNED__\${ac_eB}__CHAR_UNSIGNED__\${ac_eC}1\${ac_eD}
  1770.   "
  1771.   }
  1772. ***************
  1773. *** 787,796 ****
  1774.   rm -fr conftest*
  1775.   
  1776. ! echo checking for 64-bit long ints
  1777. ! cat > conftest.c <<EOF
  1778.   #include "confdefs.h"
  1779.   main() { exit(sizeof(long int) != 8); }
  1780.   EOF
  1781. ! eval $compile
  1782.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1783.     
  1784. --- 1133,1143 ----
  1785.   rm -fr conftest*
  1786.   
  1787. ! test -n "$silent" || echo "checking for 64-bit long ints"
  1788. ! cat > conftest.${ac_ext} <<EOF
  1789.   #include "confdefs.h"
  1790.   main() { exit(sizeof(long int) != 8); }
  1791.   EOF
  1792. ! eval $ac_compile
  1793.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1794.     
  1795. ***************
  1796. *** 798,806 ****
  1797.   test -n "$verbose" && \
  1798.   echo "    defining LONG_64_BITS"
  1799. ! echo "#define" LONG_64_BITS 1 >> confdefs.h
  1800.   DEFS="$DEFS -DLONG_64_BITS=1"
  1801. ! SEDDEFS="${SEDDEFS}\${SEDdA}LONG_64_BITS\${SEDdB}LONG_64_BITS\${SEDdC}1\${SEDdD}
  1802. ! \${SEDuA}LONG_64_BITS\${SEDuB}LONG_64_BITS\${SEDuC}1\${SEDuD}
  1803. ! \${SEDeA}LONG_64_BITS\${SEDeB}LONG_64_BITS\${SEDeC}1\${SEDeD}
  1804.   "
  1805.   }
  1806. --- 1145,1153 ----
  1807.   test -n "$verbose" && \
  1808.   echo "    defining LONG_64_BITS"
  1809. ! echo "#define" LONG_64_BITS "1" >> confdefs.h
  1810.   DEFS="$DEFS -DLONG_64_BITS=1"
  1811. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}LONG_64_BITS\${ac_dB}LONG_64_BITS\${ac_dC}1\${ac_dD}
  1812. ! \${ac_uA}LONG_64_BITS\${ac_uB}LONG_64_BITS\${ac_uC}1\${ac_uD}
  1813. ! \${ac_eA}LONG_64_BITS\${ac_eB}LONG_64_BITS\${ac_eC}1\${ac_eD}
  1814.   "
  1815.   }
  1816. ***************
  1817. *** 810,815 ****
  1818.   rm -fr conftest*
  1819.   
  1820. ! echo checking byte ordering
  1821. ! cat > conftest.c <<EOF
  1822.   #include "confdefs.h"
  1823.   main () {
  1824. --- 1157,1162 ----
  1825.   rm -fr conftest*
  1826.   
  1827. ! test -n "$silent" || echo "checking byte ordering"
  1828. ! cat > conftest.${ac_ext} <<EOF
  1829.   #include "confdefs.h"
  1830.   main () {
  1831. ***************
  1832. *** 824,828 ****
  1833.   }
  1834.   EOF
  1835. ! eval $compile
  1836.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1837.     :
  1838. --- 1171,1175 ----
  1839.   }
  1840.   EOF
  1841. ! eval $ac_compile
  1842.   if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1843.     :
  1844. ***************
  1845. *** 832,840 ****
  1846.   test -n "$verbose" && \
  1847.   echo "    defining WORDS_BIGENDIAN"
  1848. ! echo "#define" WORDS_BIGENDIAN 1 >> confdefs.h
  1849.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1850. ! SEDDEFS="${SEDDEFS}\${SEDdA}WORDS_BIGENDIAN\${SEDdB}WORDS_BIGENDIAN\${SEDdC}1\${SEDdD}
  1851. ! \${SEDuA}WORDS_BIGENDIAN\${SEDuB}WORDS_BIGENDIAN\${SEDuC}1\${SEDuD}
  1852. ! \${SEDeA}WORDS_BIGENDIAN\${SEDeB}WORDS_BIGENDIAN\${SEDeC}1\${SEDeD}
  1853.   "
  1854.   }
  1855. --- 1179,1187 ----
  1856.   test -n "$verbose" && \
  1857.   echo "    defining WORDS_BIGENDIAN"
  1858. ! echo "#define" WORDS_BIGENDIAN "1" >> confdefs.h
  1859.   DEFS="$DEFS -DWORDS_BIGENDIAN=1"
  1860. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}WORDS_BIGENDIAN\${ac_dB}WORDS_BIGENDIAN\${ac_dC}1\${ac_dD}
  1861. ! \${ac_uA}WORDS_BIGENDIAN\${ac_uB}WORDS_BIGENDIAN\${ac_uC}1\${ac_uD}
  1862. ! \${ac_eA}WORDS_BIGENDIAN\${ac_eB}WORDS_BIGENDIAN\${ac_eC}1\${ac_eD}
  1863.   "
  1864.   }
  1865. ***************
  1866. *** 844,881 ****
  1867.   
  1868.   
  1869. ! echo checking how to declare yytext
  1870. ! # Figure out what yytext is by creating a minimal parser and
  1871. ! # examining the (preprocessed, in case macros are used) output.
  1872. ! if test "z${DECLARE_YYTEXT}" = "z"; then
  1873.     echo '%%
  1874.   %%' | ${LEX}
  1875. !   if test -f lex.yy.c; then
  1876. !     LEX_OUTPUT_ROOT=lex.yy
  1877. !   elif test -f lexyy.c; then
  1878. !     LEX_OUTPUT_ROOT=lexyy
  1879. !   else
  1880. !     # Don't know what to do here.
  1881. !     echo "Can't find output from $LEX; assuming lex.yy.c." 1>&2
  1882. !     LEX_OUTPUT_ROOT=lex.yy
  1883. !   fi
  1884. !   DECLARE_YYTEXT=`eval ${CPP} "${LEX_OUTPUT_ROOT}.c" |
  1885. !     sed -n '/extern.*yytext[^a-zA-Z0-9_]/s/^.*extern/extern/p'`
  1886. !   rm -f "${LEX_OUTPUT_ROOT}.c"
  1887. ! fi
  1888.   {
  1889.   test -n "$verbose" && \
  1890. ! echo "    defining" DECLARE_YYTEXT to be $DECLARE_YYTEXT
  1891. ! echo "#define" DECLARE_YYTEXT $DECLARE_YYTEXT >> confdefs.h
  1892. ! DEFS="$DEFS -DDECLARE_YYTEXT=$DECLARE_YYTEXT"
  1893. ! SEDDEFS="${SEDDEFS}\${SEDdA}DECLARE_YYTEXT\${SEDdB}DECLARE_YYTEXT\${SEDdC}$DECLARE_YYTEXT\${SEDdD}
  1894. ! \${SEDuA}DECLARE_YYTEXT\${SEDuB}DECLARE_YYTEXT\${SEDuC}$DECLARE_YYTEXT\${SEDuD}
  1895. ! \${SEDeA}DECLARE_YYTEXT\${SEDeB}DECLARE_YYTEXT\${SEDeC}$DECLARE_YYTEXT\${SEDeD}
  1896.   "
  1897.   }
  1898.   
  1899.   
  1900.   echo checking for window system libraries
  1901. ! cat > conftest.c <<EOF
  1902.   #include "confdefs.h"
  1903.   #include "$srcdir/lib/c-auto.h.in"
  1904. --- 1191,1244 ----
  1905.   
  1906.   
  1907. ! test -n "$silent" || echo "checking for yytext declaration"
  1908. ! # POSIX says lex can declare yytext either as a pointer or an array; the
  1909. ! # default is implementation-dependent. Figure out which it is, since
  1910. ! # not all implementations provide the %pointer and %array declarations.
  1911. ! #
  1912. ! # The minimal lex program is just a single line: %%.  But some broken lexes
  1913. ! # (Solaris, I think it was) want two %% lines, so accommodate them.
  1914.     echo '%%
  1915.   %%' | ${LEX}
  1916. ! if test -f lex.yy.c; then
  1917. !   LEX_OUTPUT_ROOT=lex.yy
  1918. ! elif test -f lexyy.c; then
  1919. !   LEX_OUTPUT_ROOT=lexyy
  1920. ! else
  1921. !   # Don't know what to do here.
  1922. !   echo "configure: cannot find output from $LEX" >&2; exit 1
  1923. !   LEX_OUTPUT_ROOT=
  1924. ! fi
  1925. ! if test -n "$LEX_OUTPUT_ROOT"; then
  1926. !   echo 'extern char *yytext; main () { exit (0); }' >>$LEX_OUTPUT_ROOT.c
  1927. !   ac_save_LIBS="$LIBS"
  1928. !   LIBS="$LIBS $LEXLIB"
  1929. !   cat > conftest.${ac_ext} <<EOF
  1930. ! #include "confdefs.h"
  1931. ! `cat $LEX_OUTPUT_ROOT.c`
  1932. ! EOF
  1933. ! eval $ac_compile
  1934. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1935. !   
  1936.   {
  1937.   test -n "$verbose" && \
  1938. ! echo "    defining YYTEXT_POINTER"
  1939. ! echo "#define" YYTEXT_POINTER "1" >> confdefs.h
  1940. ! DEFS="$DEFS -DYYTEXT_POINTER=1"
  1941. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}YYTEXT_POINTER\${ac_dB}YYTEXT_POINTER\${ac_dC}1\${ac_dD}
  1942. ! \${ac_uA}YYTEXT_POINTER\${ac_uB}YYTEXT_POINTER\${ac_uC}1\${ac_uD}
  1943. ! \${ac_eA}YYTEXT_POINTER\${ac_eB}YYTEXT_POINTER\${ac_eC}1\${ac_eD}
  1944.   "
  1945.   }
  1946.   
  1947.   
  1948. + fi
  1949. + rm -fr conftest*
  1950. +   LIBS="$ac_save_LIBS"
  1951. +   rm -f "${LEX_OUTPUT_ROOT}.c"
  1952. + fi
  1953.   echo checking for window system libraries
  1954. ! cat > conftest.${ac_ext} <<EOF
  1955.   #include "confdefs.h"
  1956.   #include "$srcdir/lib/c-auto.h.in"
  1957. ***************
  1958. *** 885,890 ****
  1959.   
  1960.   EOF
  1961. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1962. ! if test -z "$err"; then
  1963.     rm -rf conftest*
  1964.     SUNWIN=t
  1965. --- 1248,1255 ----
  1966.   
  1967.   EOF
  1968. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1969. ! # the parens.
  1970. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  1971. ! if test -z "$ac_err"; then
  1972.     rm -rf conftest*
  1973.     SUNWIN=t
  1974. ***************
  1975. *** 893,897 ****
  1976.   fi
  1977.   rm -f conftest*
  1978. ! cat > conftest.c <<EOF
  1979.   #include "confdefs.h"
  1980.   #include "$srcdir/lib/c-auto.h.in"
  1981. --- 1258,1262 ----
  1982.   fi
  1983.   rm -f conftest*
  1984. ! cat > conftest.${ac_ext} <<EOF
  1985.   #include "confdefs.h"
  1986.   #include "$srcdir/lib/c-auto.h.in"
  1987. ***************
  1988. *** 901,906 ****
  1989.   
  1990.   EOF
  1991. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  1992. ! if test -z "$err"; then
  1993.     rm -rf conftest*
  1994.     XVIEWWIN=t
  1995. --- 1266,1273 ----
  1996.   
  1997.   EOF
  1998. ! # Some shells (Coherent) do redirections in the wrong order, so need
  1999. ! # the parens.
  2000. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2001. ! if test -z "$ac_err"; then
  2002.     rm -rf conftest*
  2003.     XVIEWWIN=t
  2004. ***************
  2005. *** 909,913 ****
  2006.   fi
  2007.   rm -f conftest*
  2008. ! cat > conftest.c <<EOF
  2009.   #include "confdefs.h"
  2010.   #include "$srcdir/lib/c-auto.h.in"
  2011. --- 1276,1280 ----
  2012.   fi
  2013.   rm -f conftest*
  2014. ! cat > conftest.${ac_ext} <<EOF
  2015.   #include "confdefs.h"
  2016.   #include "$srcdir/lib/c-auto.h.in"
  2017. ***************
  2018. *** 917,922 ****
  2019.   
  2020.   EOF
  2021. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2022. ! if test -z "$err"; then
  2023.     rm -rf conftest*
  2024.     X11WIN=t
  2025. --- 1284,1291 ----
  2026.   
  2027.   EOF
  2028. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2029. ! # the parens.
  2030. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2031. ! if test -z "$ac_err"; then
  2032.     rm -rf conftest*
  2033.     X11WIN=t
  2034. ***************
  2035. *** 925,929 ****
  2036.   fi
  2037.   rm -f conftest*
  2038. ! cat > conftest.c <<EOF
  2039.   #include "confdefs.h"
  2040.   #include "$srcdir/lib/c-auto.h.in"
  2041. --- 1294,1298 ----
  2042.   fi
  2043.   rm -f conftest*
  2044. ! cat > conftest.${ac_ext} <<EOF
  2045.   #include "confdefs.h"
  2046.   #include "$srcdir/lib/c-auto.h.in"
  2047. ***************
  2048. *** 933,938 ****
  2049.   
  2050.   EOF
  2051. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2052. ! if test -z "$err"; then
  2053.     rm -rf conftest*
  2054.     X10WIN=t
  2055. --- 1302,1309 ----
  2056.   
  2057.   EOF
  2058. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2059. ! # the parens.
  2060. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2061. ! if test -z "$ac_err"; then
  2062.     rm -rf conftest*
  2063.     X10WIN=t
  2064. ***************
  2065. *** 948,974 ****
  2066.     # If we find X, set shell vars x_includes and x_libraries to the paths.
  2067.   no_x=true
  2068. ! echo checking for X include and library files with xmkmf
  2069.   rm -fr conftestdir
  2070.   if mkdir conftestdir; then
  2071.     cd conftestdir
  2072. !   cat > Imakefile <<\EOF
  2073.   acfindx:
  2074. !     @echo "im_incroot=$(INCROOT); im_usrlibdir=$(USRLIBDIR); im_libdir=$(LIBDIR)"
  2075.   EOF
  2076.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2077.       no_x=
  2078.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2079. !     eval `make acfindx | grep -v make`
  2080.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2081. !     if test ! -f $im_usrlibdir/libX11.a && test -f $im_libdir/libX11.a; then
  2082. !       im_usrlibdir=$im_libdir
  2083.       fi
  2084. !     case "$im_incroot" in
  2085.       /usr/include) ;;
  2086. !     *) x_includes="$im_incroot" ;;
  2087.       esac
  2088. !     case "$im_usrlibdir" in
  2089.       /usr/lib | /lib) ;;
  2090. !     *) x_libraries="$im_usrlibdir" ;;
  2091.       esac
  2092.     fi
  2093. --- 1319,1348 ----
  2094.     # If we find X, set shell vars x_includes and x_libraries to the paths.
  2095.   no_x=true
  2096. ! if test "x$with_x" != xno; then
  2097. ! test -n "$silent" || echo "checking for X include and library files with xmkmf"
  2098.   rm -fr conftestdir
  2099.   if mkdir conftestdir; then
  2100.     cd conftestdir
  2101. !   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2102. !   cat > Imakefile <<'EOF'
  2103.   acfindx:
  2104. !     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2105.   EOF
  2106.     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2107.       no_x=
  2108.       # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2109. !     eval `make acfindx 2>/dev/null | grep -v make`
  2110.       # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2111. !     if test ! -f $ac_im_usrlibdir/libX11.a && test -f $ac_im_libdir/libX11.a
  2112. !     then
  2113. !       ac_im_usrlibdir=$ac_im_libdir
  2114.       fi
  2115. !     case "$ac_im_incroot" in
  2116.       /usr/include) ;;
  2117. !     *) test -z "$x_includes" && x_includes="$ac_im_incroot" ;;
  2118.       esac
  2119. !     case "$ac_im_usrlibdir" in
  2120.       /usr/lib | /lib) ;;
  2121. !     *) test -z "$x_libraries" && x_libraries="$ac_im_usrlibdir" ;;
  2122.       esac
  2123.     fi
  2124. ***************
  2125. *** 977,988 ****
  2126.   fi
  2127.   
  2128. ! if test -z "$im_usrlibdir"; then
  2129. ! echo checking for X include and library files directly
  2130. ! cat > conftest.c <<EOF
  2131. ! #include "confdefs.h"
  2132. ! #include <X11/Intrinsic.h>
  2133. ! EOF
  2134. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2135. ! if test -z "$err"; then
  2136.     rm -rf conftest*
  2137.     no_x=
  2138. --- 1351,1370 ----
  2139.   fi
  2140.   
  2141. ! if test -z "$ac_im_usrlibdir"; then
  2142. ! test -n "$silent" || echo "checking for X include and library files directly"
  2143. ! if test ".$x_direct_test_library" = . ; then
  2144. !    x_direct_test_library='Xt'
  2145. ! fi
  2146. ! if test ".$x_direct_test_include" = . ; then
  2147. !    x_direct_test_include='X11/Intrinsic.h'
  2148. ! fi
  2149. ! cat > conftest.${ac_ext} <<EOF
  2150. ! #include "confdefs.h"
  2151. ! #include <$x_direct_test_include>
  2152. ! EOF
  2153. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2154. ! # the parens.
  2155. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2156. ! if test -z "$ac_err"; then
  2157.     rm -rf conftest*
  2158.     no_x=
  2159. ***************
  2160. *** 990,1009 ****
  2161.   else
  2162.     rm -rf conftest*
  2163. !   for dir in \
  2164. !     /usr/local/include \
  2165. !     /usr/unsupported/include \
  2166. !     /usr/x386/include \
  2167. !     /usr/local/x11r5/include \
  2168. !     /usr/include/X11R5 \
  2169. !     /usr/include/X11R4 \
  2170. !     /usr/X11R5/include \
  2171. !     /usr/X11/include \
  2172. !     /usr/openwin/include \
  2173.       /usr/openwin/share/include \
  2174. -     /usr/lpp/Xamples/include \
  2175.       ; \
  2176.     do
  2177. !     if test -r $dir/X11/Intrinsic.h; then
  2178. !       x_includes=$dir; no_x=
  2179.         break
  2180.       fi
  2181. --- 1372,1415 ----
  2182.   else
  2183.     rm -rf conftest*
  2184. !   for ac_dir in               \
  2185. !     /usr/X11R6/include        \
  2186. !     /usr/X11R5/include        \
  2187. !     /usr/X11R4/include        \
  2188. !                               \
  2189. !     /usr/include/X11R6        \
  2190. !     /usr/include/X11R5        \
  2191. !     /usr/include/X11R4        \
  2192. !                               \
  2193. !     /usr/local/X11R6/include  \
  2194. !     /usr/local/X11R5/include  \
  2195. !     /usr/local/X11R4/include  \
  2196. !                               \
  2197. !     /usr/local/include/X11R6  \
  2198. !     /usr/local/include/X11R5  \
  2199. !     /usr/local/include/X11R4  \
  2200. !                               \
  2201. !     /usr/X11/include          \
  2202. !     /usr/include/X11          \
  2203. !     /usr/local/X11/include    \
  2204. !     /usr/local/include/X11    \
  2205. !                               \
  2206. !     /usr/X386/include         \
  2207. !     /usr/x386/include         \
  2208. !     /usr/XFree86/include/X11  \
  2209. !                               \
  2210. !     /usr/include              \
  2211. !     /usr/local/include        \
  2212. !     /usr/unsupported/include  \
  2213. !     /usr/athena/include       \
  2214. !     /usr/local/x11r5/include  \
  2215. !     /usr/lpp/Xamples/include  \
  2216. !                               \
  2217. !     /usr/openwin/include      \
  2218.       /usr/openwin/share/include \
  2219.       ; \
  2220.     do
  2221. !     if test -r "$ac_dir/$x_direct_test_include"; then
  2222. !       test -z "$x_includes" && x_includes=$ac_dir
  2223. !       no_x=
  2224.         break
  2225.       fi
  2226. ***************
  2227. *** 1014,1053 ****
  2228.   # Check for the libraries.  First see if replacing the `include' by
  2229.   # `lib' works.
  2230. ! LIBS_save="${LIBS}"
  2231. ! LIBS="${LIBS} -lXt"
  2232. ! have_lib=""
  2233. ! echo checking for -lXt
  2234. ! cat > conftest.c <<EOF
  2235.   #include "confdefs.h"
  2236.   
  2237. ! int main() { exit(0); }
  2238. ! int t() { main(); }
  2239.   EOF
  2240. ! if eval $compile; then
  2241.     rm -rf conftest*
  2242. !   have_lib="1"
  2243.   
  2244.   fi
  2245.   rm -f conftest*
  2246. ! LIBS="${LIBS_save}"
  2247. ! if test -n "${have_lib}"; then
  2248.      :; no_x=
  2249.   else
  2250. !    :; for dir in `echo "$x_includes" | sed s/include/lib/` \
  2251. !   /usr/local/lib \
  2252. !   /usr/unsupported/lib \
  2253. !   /usr/x386/lib \
  2254. !   /usr/local/x11r5/lib \
  2255. !   /usr/lib/X11 \
  2256. !   /usr/lib/X11R4 \
  2257. !   /usr/X11R5/lib \
  2258. !   /usr/X11/lib \
  2259. !   /usr/openwin/lib \
  2260. !   /usr/lpp/Xamples/lib \
  2261. !   ; \
  2262.   do
  2263. !   for extension in a so sl; do
  2264. !     if test -r $dir/libXt.$extension; then
  2265. !       x_libraries=$dir; no_x=
  2266.         break 2
  2267.       fi
  2268. --- 1420,1484 ----
  2269.   # Check for the libraries.  First see if replacing the `include' by
  2270.   # `lib' works.
  2271. ! ac_save_LIBS="${LIBS}"
  2272. ! LIBS="${LIBS} -l"$x_direct_test_library""
  2273. ! ac_have_lib=""
  2274. ! test -n "$silent" || echo "checking for -l"$x_direct_test_library""
  2275. ! cat > conftest.${ac_ext} <<EOF
  2276.   #include "confdefs.h"
  2277.   
  2278. ! int main() { return 0; }
  2279. ! int t() { main();; return 0; }
  2280.   EOF
  2281. ! if eval $ac_compile; then
  2282.     rm -rf conftest*
  2283. !   ac_have_lib="1"
  2284.   
  2285.   fi
  2286.   rm -f conftest*
  2287. ! LIBS="${ac_save_LIBS}"
  2288. ! if test -n "${ac_have_lib}"; then
  2289.      :; no_x=
  2290.   else
  2291. !    :; for ac_dir in `echo "$x_includes" | sed s/include/lib/` \
  2292. !     /usr/X11R6/lib        \
  2293. !     /usr/X11R5/lib        \
  2294. !     /usr/X11R4/lib        \
  2295. !                           \
  2296. !     /usr/lib/X11R6        \
  2297. !     /usr/lib/X11R5        \
  2298. !     /usr/lib/X11R4        \
  2299. !                           \
  2300. !     /usr/local/X11R6/lib  \
  2301. !     /usr/local/X11R5/lib  \
  2302. !     /usr/local/X11R4/lib  \
  2303. !                           \
  2304. !     /usr/local/lib/X11R6  \
  2305. !     /usr/local/lib/X11R5  \
  2306. !     /usr/local/lib/X11R4  \
  2307. !                           \
  2308. !     /usr/X11/lib          \
  2309. !     /usr/lib/X11          \
  2310. !     /usr/local/X11/lib    \
  2311. !     /usr/local/lib/X11    \
  2312. !                           \
  2313. !     /usr/X386/lib         \
  2314. !     /usr/x386/lib         \
  2315. !     /usr/XFree86/lib/X11  \
  2316. !                           \
  2317. !     /usr/lib              \
  2318. !     /usr/local/lib        \
  2319. !     /usr/unsupported/lib  \
  2320. !     /usr/athena/lib       \
  2321. !     /usr/local/x11r5/lib  \
  2322. !     /usr/lpp/Xamples/lib  \
  2323. !                           \
  2324. !     /usr/openwin/lib      \
  2325. !     /usr/openwin/share/lib \
  2326. !     ; \
  2327.   do
  2328. !   for ac_extension in a so sl; do
  2329. !     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  2330. !       test -z "$x_libraries" && x_libraries=$ac_dir
  2331. !       no_x=
  2332.         break 2
  2333.       fi
  2334. ***************
  2335. *** 1057,1141 ****
  2336.   
  2337.   fi
  2338. ! if test -n "$verbose"; then
  2339. !   test -n "$x_includes" && echo "    found X11 headers in $x_includes"
  2340. !   test -n "$x_libraries" && echo "    found X11 libraries in $x_libraries"
  2341.   fi
  2342.     
  2343.   if test -n "$x_includes"; then
  2344. !   x_include_flags=-I$x_includes
  2345.   elif test -n "$no_x"; then 
  2346.     # Not all programs may use this symbol, but it won't hurt to define it.
  2347. !   x_include_flags=-DX_DISPLAY_MISSING
  2348.   fi
  2349. ! #
  2350. ! # It would be nice to have a more robust check for the -R ld option then
  2351.   # just checking for Solaris.
  2352. - # 
  2353.   # It would also be nice to do this for all -L options, not just this one.
  2354.   if test -n "$x_libraries"; then
  2355. !   x_lib_flags=-L$x_libraries
  2356. !   if test "`uname 2>/dev/null`" = SunOS \
  2357.        && uname -r | grep '^5' >/dev/null; then
  2358. !     x_lib_flags="$x_lib_flags -R$x_libraries"
  2359.     fi
  2360.   fi
  2361. ! #
  2362. ! # Check for additional X libraries.
  2363. ! # 
  2364. ! # Since we already have an explicit check for POSIXified ISC, assume
  2365. ! # it's been used.
  2366.   if test -n "$ISC"; then
  2367. !   x_extra_libs="$x_extra_libs -lnsl_s -linet"
  2368. !   test -n "$verbose" && echo "    adding -lnsl_s -linet to x_extra_libs (for ISC)"
  2369.   else
  2370.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2371.     # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  2372. !   # needs dnet_stub.
  2373. !   LIBS_save="${LIBS}"
  2374.   LIBS="${LIBS} -ldnet"
  2375. ! have_lib=""
  2376. ! echo checking for -ldnet
  2377. ! cat > conftest.c <<EOF
  2378.   #include "confdefs.h"
  2379.   
  2380. ! int main() { exit(0); }
  2381. ! int t() { main(); }
  2382.   EOF
  2383. ! if eval $compile; then
  2384.     rm -rf conftest*
  2385. !   have_lib="1"
  2386.   
  2387.   fi
  2388.   rm -f conftest*
  2389. ! LIBS="${LIBS_save}"
  2390. ! if test -n "${have_lib}"; then
  2391. !    :; x_extra_libs="$x_extra_libs -ldnet"
  2392. !      have_dnet=t
  2393. !      test -n "$verbose" && echo "    adding -ldnet to x_extra_libs"
  2394.   else
  2395.      :; 
  2396.   fi
  2397.   
  2398. !   if test -z "$have_dnet"; then
  2399. !     LIBS_save="${LIBS}"
  2400.   LIBS="${LIBS} -ldnet_stub"
  2401. ! have_lib=""
  2402. ! echo checking for -ldnet_stub
  2403. ! cat > conftest.c <<EOF
  2404.   #include "confdefs.h"
  2405.   
  2406. ! int main() { exit(0); }
  2407. ! int t() { main(); }
  2408.   EOF
  2409. ! if eval $compile; then
  2410.     rm -rf conftest*
  2411. !   have_lib="1"
  2412.   
  2413.   fi
  2414.   rm -f conftest*
  2415. ! LIBS="${LIBS_save}"
  2416. ! if test -n "${have_lib}"; then
  2417. !    :; x_extra_libs="$x_extra_libs -ldnet_stub"
  2418. !        test -n "$verbose" && echo "    adding -ldnet_stub to x_extra_libs"
  2419.   else
  2420.      :; 
  2421. --- 1488,1566 ----
  2422.   
  2423.   fi
  2424. ! test -n "$x_includes" && test -n "$verbose" && echo "    X11 headers are in $x_includes"
  2425. ! test -n "$x_libraries" && test -n "$verbose" && echo "    X11 libraries are in $x_libraries"
  2426.   fi
  2427.     
  2428. + test -n "$silent" || echo "checking for additional X libraries and flags"
  2429.   if test -n "$x_includes"; then
  2430. !   X_CFLAGS="$X_CFLAGS -I$x_includes"
  2431.   elif test -n "$no_x"; then 
  2432.     # Not all programs may use this symbol, but it won't hurt to define it.
  2433. !   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
  2434.   fi
  2435. ! # It would be nice to have a more robust check for the -R ld option than
  2436.   # just checking for Solaris.
  2437.   # It would also be nice to do this for all -L options, not just this one.
  2438.   if test -n "$x_libraries"; then
  2439. !   X_LIBS="$X_LIBS -L$x_libraries"
  2440. !   if test "`(uname) 2>/dev/null`" = SunOS \
  2441.        && uname -r | grep '^5' >/dev/null; then
  2442. !     X_LIBS="$X_LIBS -R$x_libraries"
  2443.     fi
  2444.   fi
  2445. ! # Check for system-dependent libraries X programs must link with.
  2446.   if test -n "$ISC"; then
  2447. !   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  2448.   else
  2449.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  2450.     # libraries were built with DECnet support.  And karl@cs.umb.edu's Alpha
  2451. !   # needs dnet_stub (dnet doesn't exist).
  2452. !   ac_save_LIBS="${LIBS}"
  2453.   LIBS="${LIBS} -ldnet"
  2454. ! ac_have_lib=""
  2455. ! test -n "$silent" || echo "checking for -ldnet"
  2456. ! cat > conftest.${ac_ext} <<EOF
  2457.   #include "confdefs.h"
  2458.   
  2459. ! int main() { return 0; }
  2460. ! int t() { main();; return 0; }
  2461.   EOF
  2462. ! if eval $ac_compile; then
  2463.     rm -rf conftest*
  2464. !   ac_have_lib="1"
  2465.   
  2466.   fi
  2467.   rm -f conftest*
  2468. ! LIBS="${ac_save_LIBS}"
  2469. ! if test -n "${ac_have_lib}"; then
  2470. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  2471. !      ac_have_dnet=t
  2472.   else
  2473.      :; 
  2474.   fi
  2475.   
  2476. !   if test -z "$ac_have_dnet"; then
  2477. !     ac_save_LIBS="${LIBS}"
  2478.   LIBS="${LIBS} -ldnet_stub"
  2479. ! ac_have_lib=""
  2480. ! test -n "$silent" || echo "checking for -ldnet_stub"
  2481. ! cat > conftest.${ac_ext} <<EOF
  2482.   #include "confdefs.h"
  2483.   
  2484. ! int main() { return 0; }
  2485. ! int t() { main();; return 0; }
  2486.   EOF
  2487. ! if eval $ac_compile; then
  2488.     rm -rf conftest*
  2489. !   ac_have_lib="1"
  2490.   
  2491.   fi
  2492.   rm -f conftest*
  2493. ! LIBS="${ac_save_LIBS}"
  2494. ! if test -n "${ac_have_lib}"; then
  2495. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  2496.   else
  2497.      :; 
  2498. ***************
  2499. *** 1143,1195 ****
  2500.   
  2501.     fi
  2502. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2503. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2504. !   LIBS_save="${LIBS}"
  2505. ! LIBS="${LIBS} -lsocket"
  2506. ! have_lib=""
  2507. ! echo checking for -lsocket
  2508. ! cat > conftest.c <<EOF
  2509.   #include "confdefs.h"
  2510.   
  2511. ! int main() { exit(0); }
  2512. ! int t() { main(); }
  2513.   EOF
  2514. ! if eval $compile; then
  2515.     rm -rf conftest*
  2516. !   have_lib="1"
  2517.   
  2518.   fi
  2519.   rm -f conftest*
  2520. ! LIBS="${LIBS_save}"
  2521. ! if test -n "${have_lib}"; then
  2522. !    :; x_extra_libs="$x_extra_libs -lsocket"
  2523. !      test -n "$verbose" && echo "    adding -lsocket to x_extra_libs"
  2524.   else
  2525.      :; 
  2526.   fi
  2527.   
  2528. ! fi
  2529. ! #
  2530. !   if test -z "$Xextlib"; then
  2531. !     LIBS_save="${LIBS}"
  2532. ! LIBS="${LIBS} -lXext"
  2533. ! have_lib=""
  2534. ! echo checking for -lXext
  2535. ! cat > conftest.c <<EOF
  2536.   #include "confdefs.h"
  2537.   
  2538. ! int main() { exit(0); }
  2539. ! int t() { main(); }
  2540.   EOF
  2541. ! if eval $compile; then
  2542.     rm -rf conftest*
  2543. !   have_lib="1"
  2544.   
  2545.   fi
  2546.   rm -f conftest*
  2547. ! LIBS="${LIBS_save}"
  2548. ! if test -n "${have_lib}"; then
  2549. !    :; Xextlib=-lXext
  2550.   else
  2551.      :; 
  2552. --- 1568,1622 ----
  2553.   
  2554.     fi
  2555. !   #
  2556. !   # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT.
  2557. !   # Not sure which flavor of 386 Unix this is, but it seems harmless to
  2558. !   # check for it.
  2559. !   ac_save_LIBS="${LIBS}"
  2560. ! LIBS="${LIBS} -lnsl"
  2561. ! ac_have_lib=""
  2562. ! test -n "$silent" || echo "checking for -lnsl"
  2563. ! cat > conftest.${ac_ext} <<EOF
  2564.   #include "confdefs.h"
  2565.   
  2566. ! int main() { return 0; }
  2567. ! int t() { main();; return 0; }
  2568.   EOF
  2569. ! if eval $ac_compile; then
  2570.     rm -rf conftest*
  2571. !   ac_have_lib="1"
  2572.   
  2573.   fi
  2574.   rm -f conftest*
  2575. ! LIBS="${ac_save_LIBS}"
  2576. ! if test -n "${ac_have_lib}"; then
  2577. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  2578.   else
  2579.      :; 
  2580.   fi
  2581.   
  2582. !   #
  2583. !   # lieder@skyler.mavd.honeywell.com says without -lsocket,
  2584. !   # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
  2585. !   # But -lsocket is broken on IRIX, according to simon@lia.di.epfl.ch.
  2586. !   if test "`(uname) 2>/dev/null`" != IRIX; then
  2587. !     ac_save_LIBS="${LIBS}"
  2588. ! LIBS="${LIBS} -lsocket"
  2589. ! ac_have_lib=""
  2590. ! test -n "$silent" || echo "checking for -lsocket"
  2591. ! cat > conftest.${ac_ext} <<EOF
  2592.   #include "confdefs.h"
  2593.   
  2594. ! int main() { return 0; }
  2595. ! int t() { main();; return 0; }
  2596.   EOF
  2597. ! if eval $ac_compile; then
  2598.     rm -rf conftest*
  2599. !   ac_have_lib="1"
  2600.   
  2601.   fi
  2602.   rm -f conftest*
  2603. ! LIBS="${ac_save_LIBS}"
  2604. ! if test -n "${ac_have_lib}"; then
  2605. !    :; X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
  2606.   else
  2607.      :; 
  2608. ***************
  2609. *** 1197,1201 ****
  2610.   
  2611.     fi
  2612. !   wlibs="-lXt $Xextlib -lX11 $wlibs"
  2613.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2614.   fi
  2615. --- 1624,1670 ----
  2616.   
  2617.     fi
  2618. ! fi
  2619. ! # Check for libraries that X11R6 Xt/Xaw programs need.
  2620. ! save_ldflags=$LDFLAGS
  2621. ! LDFLAGS="$LDFLAGS -L$x_libraries"
  2622. ! # Unfortunately, SM needs ICE to (dynamically) link under SunOS 4.x (so
  2623. ! # we have to check for ICE first), but we must link in the order -lSM
  2624. ! # -lICE or we get undefined symbols.  Resolution is just to assume we
  2625. ! # have SM if we have ICE.  Why not?  Furthermore, these have to be
  2626. ! # linked with before -lX11, in contrast to the other libraries we check
  2627. ! # for below, so use a different variable.
  2628. ! #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  2629. ! ac_save_LIBS="${LIBS}"
  2630. ! LIBS="${LIBS} -lICE $X_EXTRA_LIBS"
  2631. ! ac_have_lib=""
  2632. ! test -n "$silent" || echo "checking for -lICE $X_EXTRA_LIBS"
  2633. ! cat > conftest.${ac_ext} <<EOF
  2634. ! #include "confdefs.h"
  2635. ! int main() { return 0; }
  2636. ! int t() { main();; return 0; }
  2637. ! EOF
  2638. ! if eval $ac_compile; then
  2639. !   rm -rf conftest*
  2640. !   ac_have_lib="1"
  2641. ! fi
  2642. ! rm -f conftest*
  2643. ! LIBS="${ac_save_LIBS}"
  2644. ! if test -n "${ac_have_lib}"; then
  2645. !    :; X_R6_LIBS="-lSM -lICE"
  2646. ! else
  2647. !    :; 
  2648. ! fi
  2649. ! LDFLAGS=$save_ldflags
  2650. ! #
  2651. ! test -n "$verbose" && echo "    X compiler flags: $X_CFLAGS"
  2652. ! test -n "$verbose" && echo "    X library flags: $X_LIBS"
  2653. ! test -n "$verbose" && echo "    R6 libraries: $X_R6_LIBS"
  2654. ! test -n "$verbose" && echo "    extra X libraries: $X_EXTRA_LIBS"
  2655. !   wlibs="-lXt $X_R6_LIBS -lX11 $wlibs"
  2656.     (cd $srcdir/mf/MFwindow; rm -f x11.c; $LN_S x11-Xt.c x11.c)
  2657.   fi
  2658. ***************
  2659. *** 1213,1217 ****
  2660.   # If `small' version is not wanted, do nothing -- make will copy the
  2661.   # default change file.
  2662. ! cat > conftest.c <<EOF
  2663.   #include "confdefs.h"
  2664.   #include "$srcdir/lib/c-auto.h.in"
  2665. --- 1682,1686 ----
  2666.   # If `small' version is not wanted, do nothing -- make will copy the
  2667.   # default change file.
  2668. ! cat > conftest.${ac_ext} <<EOF
  2669.   #include "confdefs.h"
  2670.   #include "$srcdir/lib/c-auto.h.in"
  2671. ***************
  2672. *** 1221,1226 ****
  2673.   
  2674.   EOF
  2675. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2676. ! if test -z "$err"; then
  2677.     rm -rf conftest*
  2678.     SMALLTeX=t
  2679. --- 1690,1697 ----
  2680.   
  2681.   EOF
  2682. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2683. ! # the parens.
  2684. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2685. ! if test -z "$ac_err"; then
  2686.     rm -rf conftest*
  2687.     SMALLTeX=t
  2688. ***************
  2689. *** 1235,1244 ****
  2690.   {
  2691.   test -n "$verbose" && \
  2692. ! echo "    defining" GLUERATIO_TYPE to be float
  2693. ! echo "#define" GLUERATIO_TYPE float >> confdefs.h
  2694.   DEFS="$DEFS -DGLUERATIO_TYPE=float"
  2695. ! SEDDEFS="${SEDDEFS}\${SEDdA}GLUERATIO_TYPE\${SEDdB}GLUERATIO_TYPE\${SEDdC}float\${SEDdD}
  2696. ! \${SEDuA}GLUERATIO_TYPE\${SEDuB}GLUERATIO_TYPE\${SEDuC}float\${SEDuD}
  2697. ! \${SEDeA}GLUERATIO_TYPE\${SEDeB}GLUERATIO_TYPE\${SEDeC}float\${SEDeD}
  2698.   "
  2699.   }
  2700. --- 1706,1715 ----
  2701.   {
  2702.   test -n "$verbose" && \
  2703. ! echo "    defining" GLUERATIO_TYPE to be "float"
  2704. ! echo "#define" GLUERATIO_TYPE "float" >> confdefs.h
  2705.   DEFS="$DEFS -DGLUERATIO_TYPE=float"
  2706. ! ac_sed_defs="${ac_sed_defs}\${ac_dA}GLUERATIO_TYPE\${ac_dB}GLUERATIO_TYPE\${ac_dC}float\${ac_dD}
  2707. ! \${ac_uA}GLUERATIO_TYPE\${ac_uB}GLUERATIO_TYPE\${ac_uC}float\${ac_uD}
  2708. ! \${ac_eA}GLUERATIO_TYPE\${ac_eB}GLUERATIO_TYPE\${ac_eC}float\${ac_eD}
  2709.   "
  2710.   }
  2711. ***************
  2712. *** 1247,1251 ****
  2713.   
  2714.   # Metafont next.
  2715. ! cat > conftest.c <<EOF
  2716.   #include "confdefs.h"
  2717.   #include "$srcdir/lib/c-auto.h.in"
  2718. --- 1718,1722 ----
  2719.   
  2720.   # Metafont next.
  2721. ! cat > conftest.${ac_ext} <<EOF
  2722.   #include "confdefs.h"
  2723.   #include "$srcdir/lib/c-auto.h.in"
  2724. ***************
  2725. *** 1255,1260 ****
  2726.   
  2727.   EOF
  2728. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2729. ! if test -z "$err"; then
  2730.     rm -rf conftest*
  2731.     SMALLMF=t
  2732. --- 1726,1733 ----
  2733.   
  2734.   EOF
  2735. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2736. ! # the parens.
  2737. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2738. ! if test -z "$ac_err"; then
  2739.     rm -rf conftest*
  2740.     SMALLMF=t
  2741. ***************
  2742. *** 1269,1273 ****
  2743.   
  2744.   # And finally BibTeX.
  2745. ! cat > conftest.c <<EOF
  2746.   #include "confdefs.h"
  2747.   #include "$srcdir/lib/c-auto.h.in"
  2748. --- 1742,1746 ----
  2749.   
  2750.   # And finally BibTeX.
  2751. ! cat > conftest.${ac_ext} <<EOF
  2752.   #include "confdefs.h"
  2753.   #include "$srcdir/lib/c-auto.h.in"
  2754. ***************
  2755. *** 1277,1282 ****
  2756.   
  2757.   EOF
  2758. ! err=`eval "($CPP conftest.c >/dev/null) 2>&1"`
  2759. ! if test -z "$err"; then
  2760.     rm -rf conftest*
  2761.     SMALLBibTeX=t
  2762. --- 1750,1757 ----
  2763.   
  2764.   EOF
  2765. ! # Some shells (Coherent) do redirections in the wrong order, so need
  2766. ! # the parens.
  2767. ! ac_err=`eval "($ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
  2768. ! if test -z "$ac_err"; then
  2769.     rm -rf conftest*
  2770.     SMALLBibTeX=t
  2771. ***************
  2772. *** 1291,1313 ****
  2773.   fi
  2774.   
  2775. ! # Set default prefixes.
  2776.   if test -n "$prefix"; then
  2777. !   test -z "$exec_prefix" && exec_prefix='${prefix}'
  2778. !   prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2779.   fi
  2780.   if test -n "$exec_prefix"; then
  2781. !   prsub="$prsub
  2782.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2783.   fi
  2784.   # Quote sed substitution magic chars in DEFS.
  2785.   cat >conftest.def <<EOF
  2786.   $DEFS
  2787.   EOF
  2788. ! escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2789. ! DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
  2790.   rm -f conftest.def
  2791.   # Substitute for predefined variables.
  2792.   
  2793. ! trap 'rm -f config.status; exit 1' 1 3 15
  2794.   echo creating config.status
  2795.   rm -f config.status
  2796. --- 1766,1800 ----
  2797.   fi
  2798.   
  2799. ! # The preferred way to propogate these variables is regular @ substitutions.
  2800.   if test -n "$prefix"; then
  2801. !   ac_prsub="s%^prefix\\([     ]*\\)=\\([     ]*\\).*$%prefix\\1=\\2$prefix%"
  2802. ! else
  2803. !   prefix=/usr/local
  2804.   fi
  2805.   if test -n "$exec_prefix"; then
  2806. !   ac_prsub="$ac_prsub
  2807.   s%^exec_prefix\\([     ]*\\)=\\([     ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
  2808. + else
  2809. +   exec_prefix='${prefix}' # Let make expand it.
  2810.   fi
  2811. + # Any assignment to VPATH causes Sun make to only execute
  2812. + # the first set of double-colon rules, so remove it if not needed.
  2813. + # If there is a colon in the path, we need to keep it.
  2814. + if test "x$srcdir" = x.; then
  2815. +   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  2816. + fi
  2817.   # Quote sed substitution magic chars in DEFS.
  2818.   cat >conftest.def <<EOF
  2819.   $DEFS
  2820.   EOF
  2821. ! ac_escape_ampersand_and_backslash='s%[&\\]%\\&%g'
  2822. ! DEFS=`sed "$ac_escape_ampersand_and_backslash" <conftest.def`
  2823.   rm -f conftest.def
  2824.   # Substitute for predefined variables.
  2825.   
  2826. ! trap 'rm -f config.status; exit 1' 1 2 15
  2827.   echo creating config.status
  2828.   rm -f config.status
  2829. ***************
  2830. *** 1321,1331 ****
  2831.   # $0 $configure_args
  2832.   
  2833. ! for arg
  2834.   do
  2835. !   case "\$arg" in
  2836. !     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2837. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
  2838. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
  2839. !     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  2840.     esac
  2841.   done
  2842. --- 1808,1824 ----
  2843.   # $0 $configure_args
  2844.   
  2845. ! ac_cs_usage="Usage: config.status [--recheck] [--version] [--help]"
  2846. ! for ac_option
  2847.   do
  2848. !   case "\$ac_option" in
  2849. !   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2850. !     echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create
  2851. !     exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create ;;
  2852. !   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  2853. !     echo "config.status generated by autoconf version 1.11"
  2854. !     exit 0 ;;
  2855. !   -help | --help | --hel | --he | --h)
  2856. !     echo "\$ac_cs_usage"; exit 0 ;;
  2857. !   *) echo "\$ac_cs_usage"; exit 1 ;;
  2858.     esac
  2859.   done
  2860. ***************
  2861. *** 1333,1337 ****
  2862.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2863.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2864. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 3 15
  2865.   CC='$CC'
  2866.   CPP='$CPP'
  2867. --- 1826,1830 ----
  2868.   trap 'rm -fr Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2869.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2870. ! tex/Makefile web/Makefile web2c/Makefile lib/c-auto.h conftest*; exit 1' 1 2 15
  2871.   CC='$CC'
  2872.   CPP='$CPP'
  2873. ***************
  2874. *** 1345,1379 ****
  2875.   LN_S='$LN_S'
  2876.   LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  2877. ! x_include_flags='$x_include_flags'
  2878. ! x_lib_flags='$x_lib_flags'
  2879. ! x_extra_libs='$x_extra_libs'
  2880.   wlibs='$wlibs'
  2881.   LIBS='$LIBS'
  2882.   srcdir='$srcdir'
  2883.   prefix='$prefix'
  2884.   exec_prefix='$exec_prefix'
  2885. ! prsub='$prsub'
  2886.   extrasub='$extrasub'
  2887.   EOF
  2888.   cat >> config.status <<\EOF
  2889.   
  2890. ! top_srcdir=$srcdir
  2891.   
  2892.   CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2893.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2894.   tex/Makefile web/Makefile web2c/Makefile"}
  2895. ! for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
  2896. !   srcdir=$top_srcdir
  2897.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2898. !   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  2899. !   if test "$dir" != "$file"; then
  2900. !     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  2901. !     test ! -d $dir && mkdir $dir
  2902.     fi
  2903. !   echo creating $file
  2904. !   rm -f $file
  2905. !   echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
  2906. !   sed -e "
  2907. ! $prsub
  2908.   $extrasub
  2909.   s%@CC@%$CC%g
  2910. --- 1838,1918 ----
  2911.   LN_S='$LN_S'
  2912.   LEX_OUTPUT_ROOT='$LEX_OUTPUT_ROOT'
  2913. ! X_CFLAGS='$X_CFLAGS'
  2914. ! X_LIBS='$X_LIBS'
  2915. ! X_R6_LIBS='$X_R6_LIBS'
  2916. ! X_EXTRA_LIBS='$X_EXTRA_LIBS'
  2917.   wlibs='$wlibs'
  2918.   LIBS='$LIBS'
  2919.   srcdir='$srcdir'
  2920. + top_srcdir='$top_srcdir'
  2921.   prefix='$prefix'
  2922.   exec_prefix='$exec_prefix'
  2923. ! ac_prsub='$ac_prsub'
  2924. ! ac_vpsub='$ac_vpsub'
  2925.   extrasub='$extrasub'
  2926.   EOF
  2927.   cat >> config.status <<\EOF
  2928.   
  2929. ! ac_given_srcdir=$srcdir
  2930.   
  2931.   CONFIG_FILES=${CONFIG_FILES-"Makefile bibtex/Makefile dviutil/Makefile fontutil/Makefile \
  2932.   lib/Makefile man/Makefile mf/Makefile mf/MFwindow/Makefile \
  2933.   tex/Makefile web/Makefile web2c/Makefile"}
  2934. ! for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
  2935.     # Remove last slash and all that follows it.  Not all systems have dirname.
  2936. !   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2937. !   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2938. !     # The file is in a subdirectory.
  2939. !     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2940. !     ac_dir_suffix="/$ac_dir"
  2941. !   else
  2942. !     ac_dir_suffix=
  2943.     fi
  2944. !   # A "../" for each directory in $ac_dir_suffix.
  2945. !   ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2946. !   case "$ac_given_srcdir" in
  2947. !   .)  srcdir=.
  2948. !       if test -z "$ac_dir_suffix"; then top_srcdir=.
  2949. !       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2950. !   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2951. !   *) # Relative path.
  2952. !     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2953. !     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2954. !   esac
  2955. !   echo creating "$ac_file"
  2956. !   rm -f "$ac_file"
  2957. !   comment_str="Generated automatically from `echo $ac_file|sed 's|.*/||'`.in by configure."
  2958. !   case "$ac_file" in
  2959. !     *.c | *.h | *.C | *.cc | *.m )  echo "/* $comment_str */" > "$ac_file" ;;
  2960. !     * )          echo "# $comment_str"     > "$ac_file" ;;
  2961. !   esac
  2962. !   # Replace lines of the form ac_include foo with the contents of foo:
  2963. !   # first, from the ac_include lines construct a list of sed
  2964. !   # commands to remove them, and include the files; then run sed.
  2965. !   # Have to use sed because old (Ultrix, SunOS) awk does not support
  2966. !   # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
  2967. !   # Use \@...@<cmd> form of sed address because the filename may contain /.
  2968. !   # Can't use only one -e and commands {dr foo} because foo has to be last.
  2969. !   # Use @e initially instead of -e because GNU echo has a -e option.
  2970. !   file_substs=`sed -n \
  2971. ! "/^ac_include/s%ac_include[     ]*\(.*\)%@e '\\\\\@^&@r \1' -e '\\\\\@^&@d'%p"\
  2972. !                $ac_given_srcdir/${ac_file}.in`
  2973. !   if test -n "$file_substs"; then
  2974. !     # Change @e back to -e.
  2975. !     file_subst_cmd="sed `echo $file_substs | sed s/@e/-e/g`"
  2976. !   else
  2977. !     # If no substitutions and hence no sed commands, don't choke.
  2978. !     file_subst_cmd=cat
  2979. !   fi
  2980. !   # cd into the srcdir because the files being included more or less
  2981. !   # must be part of the distribution. I can't find any way to do
  2982. !   # variable substitution in the sed commands (so the user could have,
  2983. !   # e.g., $top_srcdir in their ac_include line).
  2984. !   (cd $ac_given_srcdir && eval $file_subst_cmd ${ac_file}.in) \
  2985. !   | sed -e "
  2986. ! $ac_prsub
  2987. ! $ac_vpsub
  2988.   $extrasub
  2989.   s%@CC@%$CC%g
  2990. ***************
  2991. *** 1388,1425 ****
  2992.   s%@LN_S@%$LN_S%g
  2993.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  2994. ! s%@x_include_flags@%$x_include_flags%g
  2995. ! s%@x_lib_flags@%$x_lib_flags%g
  2996. ! s%@x_extra_libs@%$x_extra_libs%g
  2997.   s%@wlibs@%$wlibs%g
  2998.   s%@LIBS@%$LIBS%g
  2999.   s%@srcdir@%$srcdir%g
  3000. ! s%@DEFS@%-DHAVE_CONFIG_H%" $top_srcdir/${file}.in >> $file
  3001.   fi; done
  3002.   
  3003. ! CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3004. ! for file in .. ${CONFIG_HEADERS}; do if test "x$file" != x..; then
  3005. ! echo creating $file
  3006. ! # These sed commands are put into SEDDEFS when defining a macro.
  3007.   # They are broken into pieces to make the sed script easier to manage.
  3008.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3009.   # is the cpp macro being defined and VALUE is the value it is being given.
  3010.   # Each defining turns into a single global substitution command.
  3011.   #
  3012. ! # SEDd sets the value in "#define NAME VALUE" lines.
  3013. ! SEDdA='s@^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3014. ! SEDdB='\([     ][     ]*\)[^     ]*@\1#\2'
  3015. ! SEDdC='\3'
  3016. ! SEDdD='@g'
  3017. ! # SEDu turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3018. ! SEDuA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3019. ! SEDuB='\([     ]\)@\1#\2define\3'
  3020. ! SEDuC=' '
  3021. ! SEDuD='\4@g'
  3022. ! # SEDe turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3023. ! SEDeA='s@^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3024. ! SEDeB='$@\1#\2define\3'
  3025. ! SEDeC=' '
  3026. ! SEDeD='@g'
  3027.   rm -f conftest.sed
  3028.   EOF
  3029. --- 1927,1966 ----
  3030.   s%@LN_S@%$LN_S%g
  3031.   s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  3032. ! s%@X_CFLAGS@%$X_CFLAGS%g
  3033. ! s%@X_LIBS@%$X_LIBS%g
  3034. ! s%@X_R6_LIBS@%$X_R6_LIBS%g
  3035. ! s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  3036.   s%@wlibs@%$wlibs%g
  3037.   s%@LIBS@%$LIBS%g
  3038.   s%@srcdir@%$srcdir%g
  3039. ! s%@top_srcdir@%$top_srcdir%g
  3040. ! s%@prefix@%$prefix%g
  3041. ! s%@exec_prefix@%$exec_prefix%g
  3042. ! s%@DEFS@%-DHAVE_CONFIG_H%" >> $ac_file
  3043.   fi; done
  3044.   
  3045. ! # These sed commands are put into ac_sed_defs when defining a macro.
  3046.   # They are broken into pieces to make the sed script easier to manage.
  3047.   # They are passed to sed as "A NAME B NAME C VALUE D", where NAME
  3048.   # is the cpp macro being defined and VALUE is the value it is being given.
  3049.   # Each defining turns into a single global substitution command.
  3050. + # Hopefully no one uses "!" as a variable value.
  3051. + # Other candidates for the sed separators, like , and @, do get used.
  3052.   #
  3053. ! # ac_d sets the value in "#define NAME VALUE" lines.
  3054. ! ac_dA='s!^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3055. ! ac_dB='\([     ][     ]*\)[^     ]*!\1#\2'
  3056. ! ac_dC='\3'
  3057. ! ac_dD='!g'
  3058. ! # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3059. ! ac_uA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3060. ! ac_uB='\([     ]\)!\1#\2define\3'
  3061. ! ac_uC=' '
  3062. ! ac_uD='\4!g'
  3063. ! # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3064. ! ac_eA='s!^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3065. ! ac_eB='$!\1#\2define\3'
  3066. ! ac_eC=' '
  3067. ! ac_eD='!g'
  3068.   rm -f conftest.sed
  3069.   EOF
  3070. ***************
  3071. *** 1427,1447 ****
  3072.   rm -f conftest.sh
  3073.   cat > conftest.sh <<EOF
  3074. ! $SEDDEFS
  3075.   EOF
  3076.   
  3077. ! # Break up $SEDDEFS (now in conftest.sh) because some shells have a limit
  3078.   # on the size of here documents.
  3079.   
  3080.   # Maximum number of lines to put in a single here document.
  3081. ! maxshlines=9
  3082.   
  3083.   while :
  3084.   do
  3085. !   # wc gives bogus results for an empty file on some systems.
  3086. !   lines=`grep -c . conftest.sh`
  3087. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3088.     rm -f conftest.s1 conftest.s2
  3089. !   sed ${maxshlines}q conftest.sh > conftest.s1 # Like head -20.
  3090. !   sed 1,${maxshlines}d conftest.sh > conftest.s2 # Like tail +21.
  3091.     # Write a limited-size here document to append to conftest.sed.
  3092.     echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3093. --- 1968,1988 ----
  3094.   rm -f conftest.sh
  3095.   cat > conftest.sh <<EOF
  3096. ! $ac_sed_defs
  3097.   EOF
  3098.   
  3099. ! # Break up $ac_sed_defs (now in conftest.sh) because some shells have a limit
  3100.   # on the size of here documents.
  3101.   
  3102.   # Maximum number of lines to put in a single here document.
  3103. ! ac_max_sh_lines=9
  3104.   
  3105.   while :
  3106.   do
  3107. !   # wc gives bogus results for an empty file on some AIX systems.
  3108. !   ac_lines=`grep -c . conftest.sh`
  3109. !   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3110.     rm -f conftest.s1 conftest.s2
  3111. !   sed ${ac_max_sh_lines}q conftest.sh > conftest.s1 # Like head -9.
  3112. !   sed 1,${ac_max_sh_lines}d conftest.sh > conftest.s2 # Like tail +10.
  3113.     # Write a limited-size here document to append to conftest.sed.
  3114.     echo 'cat >> conftest.sed <<CONFEOF' >> config.status
  3115. ***************
  3116. *** 1464,1494 ****
  3117.   rm -f conftest.h
  3118.   # Break up the sed commands because old seds have small limits.
  3119. ! maxsedlines=20
  3120. ! cp $top_srcdir/$file.in conftest.h1
  3121. ! while :
  3122. ! do
  3123. !   lines=`grep -c . conftest.sed`
  3124. !   if test -z "$lines" || test "$lines" -eq 0; then break; fi
  3125. !   rm -f conftest.s1 conftest.s2 conftest.h2
  3126. !   sed ${maxsedlines}q conftest.sed > conftest.s1 # Like head -20.
  3127. !   sed 1,${maxsedlines}d conftest.sed > conftest.s2 # Like tail +21.
  3128. !   sed -f conftest.s1 < conftest.h1 > conftest.h2
  3129. !   rm -f conftest.s1 conftest.h1 conftest.sed
  3130. !   mv conftest.h2 conftest.h1
  3131. !   mv conftest.s2 conftest.sed
  3132. ! done
  3133. ! rm -f conftest.sed conftest.h
  3134. ! echo "/* $file.  Generated automatically by configure.  */" > conftest.h
  3135. ! cat conftest.h1 >> conftest.h
  3136. ! rm -f conftest.h1
  3137. ! if cmp -s $file conftest.h 2>/dev/null; then
  3138. !   # The file exists and we would not be changing it.
  3139. !   echo "$file is unchanged"
  3140. !   rm -f conftest.h
  3141. ! else
  3142. !   rm -f $file
  3143. !   mv conftest.h $file
  3144. ! fi
  3145.   fi; done
  3146.   
  3147.   
  3148. --- 2005,2042 ----
  3149.   rm -f conftest.h
  3150.   # Break up the sed commands because old seds have small limits.
  3151. ! ac_max_sed_lines=20
  3152. ! CONFIG_HEADERS=${CONFIG_HEADERS-"lib/c-auto.h"}
  3153. ! for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
  3154. !   echo creating $ac_file
  3155. !   cp $ac_given_srcdir/$ac_file.in conftest.h1
  3156. !   cp conftest.sed conftest.stm
  3157. !   while :
  3158. !   do
  3159. !     ac_lines=`grep -c . conftest.stm`
  3160. !     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3161. !     rm -f conftest.s1 conftest.s2 conftest.h2
  3162. !     sed ${ac_max_sed_lines}q conftest.stm > conftest.s1 # Like head -20.
  3163. !     sed 1,${ac_max_sed_lines}d conftest.stm > conftest.s2 # Like tail +21.
  3164. !     sed -f conftest.s1 < conftest.h1 > conftest.h2
  3165. !     rm -f conftest.s1 conftest.h1 conftest.stm
  3166. !     mv conftest.h2 conftest.h1
  3167. !     mv conftest.s2 conftest.stm
  3168. !   done
  3169. !   rm -f conftest.stm conftest.h
  3170. !   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  3171. !   cat conftest.h1 >> conftest.h
  3172. !   rm -f conftest.h1
  3173. !   if cmp -s $ac_file conftest.h 2>/dev/null; then
  3174. !     # The file exists and we would not be changing it.
  3175. !     echo "$ac_file is unchanged"
  3176. !     rm -f conftest.h
  3177. !   else
  3178. !     rm -f $ac_file
  3179. !     mv conftest.h $ac_file
  3180. !   fi
  3181.   fi; done
  3182. + rm -f conftest.sed
  3183.   
  3184.   
  3185. ***************
  3186. *** 1497,1500 ****
  3187.   EOF
  3188.   chmod +x config.status
  3189. ! ${CONFIG_SHELL-/bin/sh} config.status
  3190.   
  3191. --- 2045,2049 ----
  3192.   EOF
  3193.   chmod +x config.status
  3194. ! # Some shells look in PATH for config.status without the "./".
  3195. ! test -n "$no_create" || ${CONFIG_SHELL-/bin/sh} ./config.status
  3196.   
  3197. *** web2c/lib/c-auto.h.in.save    Tue Feb  1 12:28:36 1994
  3198. --- web2c/lib/c-auto.h.in    Fri Sep 23 18:28:15 1994
  3199. ***************
  3200. *** 152,156 ****
  3201.   
  3202.   /* Define as the proper declaration for yytext.  */
  3203. ! #undef DECLARE_YYTEXT
  3204.   
  3205.   /* Define if you have dirent.h.  */
  3206. --- 152,161 ----
  3207.   
  3208.   /* Define as the proper declaration for yytext.  */
  3209. ! #undef YYTEXT_POINTER
  3210. ! #if YYTEXT_POINTER
  3211. ! #define DECLARE_YYTEXT extern char *yytext;
  3212. ! #else
  3213. ! #define DECLARE_YYTEXT extern char yytext[];
  3214. ! #endif
  3215.   
  3216.   /* Define if you have dirent.h.  */
  3217. *** web2c/lib/main.c.save    Tue May 25 11:41:19 1993
  3218. --- web2c/lib/main.c    Fri Sep 23 15:48:40 1994
  3219. ***************
  3220. *** 28,31 ****
  3221. --- 28,32 ----
  3222.     argc = ac;
  3223.     gargv = av;
  3224. +   kpse_set_progname(av[0]);
  3225.     main_body ();
  3226.     return EXIT_SUCCESS;
  3227. *** web2c/lib/openinout.c.save    Sat Dec  4 13:01:52 1993
  3228. --- web2c/lib/openinout.c    Wed Sep 28 16:26:41 1994
  3229. ***************
  3230. *** 125,128 ****
  3231. --- 125,131 ----
  3232.       kpse_file_format_type format;
  3233.   {
  3234. +   static boolean kpathsea_dpi_set = 0;
  3235. +   static boolean maketex_base_dpi_set = 0;
  3236.     string found;
  3237.     /* Since & is a no-op when applied to an array, we must put the
  3238. ***************
  3239. *** 130,133 ****
  3240. --- 133,149 ----
  3241.     string name = nameoffile;
  3242.     
  3243. +   if (!kpathsea_dpi_set)
  3244. +     {
  3245. +       if (!getenv ("KPATHSEA_DPI"))
  3246. +     xputenv_int ("KPATHSEA_DPI", 300);
  3247. +       kpathsea_dpi_set = 1;
  3248. +     }
  3249. +   if (!maketex_base_dpi_set)
  3250. +     {
  3251. +       if (!getenv ("MAKETEX_BASE_DPI"))
  3252. +     xputenv_int ("MAKETEX_BASE_DPI", 300);
  3253. +       maketex_base_dpi_set = 1;
  3254. +     }
  3255.     make_c_string (&name);
  3256.     found = kpse_make_tex (format, name);
  3257. *** web2c/lib/ourpaths.c.save    Sun Dec  5 12:48:44 1993
  3258. --- web2c/lib/ourpaths.c    Fri Oct 28 21:42:19 1994
  3259. ***************
  3260. *** 3,14 ****
  3261.   #include "config.h"
  3262.   
  3263. ! #include <kpathsea/filefmt.h>
  3264.   #include <kpathsea/fontmap.h>
  3265.   #include <kpathsea/pathsearch.h>
  3266.   
  3267.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  3268.      of directories to search for.  */
  3269. ! static string path_dirs[LAST_PATH];
  3270.   
  3271.   
  3272. --- 3,17 ----
  3273.   #include "config.h"
  3274.   
  3275. ! #include <kpathsea/cnf.h>
  3276. ! #include <kpathsea/default.h>
  3277. ! #include <kpathsea/expand.h>
  3278.   #include <kpathsea/fontmap.h>
  3279. + #include <kpathsea/paths.h>
  3280.   #include <kpathsea/pathsearch.h>
  3281. ! #include <kpathsea/tex-file.h>
  3282.   
  3283.   /* `path_dirs' is initialized in `setpaths', to a null-terminated array
  3284.      of directories to search for.  */
  3285. ! static const_string path_dirs[LAST_PATH];
  3286.   
  3287.   
  3288. ***************
  3289. *** 23,60 ****
  3290.   {
  3291.     if (path_bits & BIBINPUTPATHBIT)
  3292. !     path_dirs[BIBINPUTPATH] = KPSE_BIB_PATH ();
  3293.   
  3294.     if (path_bits & BSTINPUTPATHBIT)
  3295. !     path_dirs[BSTINPUTPATH] = KPSE_BST_PATH ();
  3296.   
  3297.     if (path_bits & GFFILEPATHBIT)
  3298. !     path_dirs[GFFILEPATH] = KPSE_GF_PATH ();
  3299.   
  3300.     if (path_bits & MFBASEPATHBIT)
  3301. !     path_dirs[MFBASEPATH] = KPSE_BASE_PATH ();
  3302.   
  3303.     if (path_bits & MFINPUTPATHBIT)
  3304. !     path_dirs[MFINPUTPATH] = KPSE_MF_PATH ();
  3305.   
  3306.     if (path_bits & MFPOOLPATHBIT)
  3307. !     path_dirs[MFPOOLPATH] = KPSE_MFPOOL_PATH ();
  3308.   
  3309.     if (path_bits & PKFILEPATHBIT)
  3310. !     path_dirs[PKFILEPATH] = KPSE_PK_PATH ();
  3311.   
  3312.     if (path_bits & TEXFORMATPATHBIT)
  3313. !     path_dirs[TEXFORMATPATH] = KPSE_FMT_PATH ();
  3314.   
  3315.     if (path_bits & TEXINPUTPATHBIT)
  3316. !     path_dirs[TEXINPUTPATH] = KPSE_TEX_PATH ();
  3317.   
  3318.     if (path_bits & TEXPOOLPATHBIT)
  3319. !     path_dirs[TEXPOOLPATH] = KPSE_TEXPOOL_PATH ();
  3320.   
  3321.     if (path_bits & TFMFILEPATHBIT)
  3322. !     path_dirs[TFMFILEPATH] = KPSE_TFM_PATH ();
  3323.   
  3324.     if (path_bits & VFFILEPATHBIT)
  3325. !     path_dirs[VFFILEPATH] = KPSE_VF_PATH ();
  3326.   }
  3327.   
  3328. --- 26,63 ----
  3329.   {
  3330.     if (path_bits & BIBINPUTPATHBIT)
  3331. !     path_dirs[BIBINPUTPATH] = kpse_init_format (kpse_bib_format);
  3332.   
  3333.     if (path_bits & BSTINPUTPATHBIT)
  3334. !     path_dirs[BSTINPUTPATH] = kpse_init_format (kpse_bst_format);
  3335.   
  3336.     if (path_bits & GFFILEPATHBIT)
  3337. !     path_dirs[GFFILEPATH] = kpse_init_format (kpse_gf_format);
  3338.   
  3339.     if (path_bits & MFBASEPATHBIT)
  3340. !     path_dirs[MFBASEPATH] = kpse_init_format (kpse_base_format);
  3341.   
  3342.     if (path_bits & MFINPUTPATHBIT)
  3343. !     path_dirs[MFINPUTPATH] = kpse_init_format (kpse_mf_format);
  3344.   
  3345.     if (path_bits & MFPOOLPATHBIT)
  3346. !     path_dirs[MFPOOLPATH] = kpse_init_format (kpse_mfpool_format);
  3347.   
  3348.     if (path_bits & PKFILEPATHBIT)
  3349. !     path_dirs[PKFILEPATH] = kpse_init_format (kpse_pk_format);
  3350.   
  3351.     if (path_bits & TEXFORMATPATHBIT)
  3352. !     path_dirs[TEXFORMATPATH] = kpse_init_format (kpse_fmt_format);
  3353.   
  3354.     if (path_bits & TEXINPUTPATHBIT)
  3355. !     path_dirs[TEXINPUTPATH] = kpse_init_format (kpse_tex_format);
  3356.   
  3357.     if (path_bits & TEXPOOLPATHBIT)
  3358. !     path_dirs[TEXPOOLPATH] = kpse_init_format (kpse_texpool_format);
  3359.   
  3360.     if (path_bits & TFMFILEPATHBIT)
  3361. !     path_dirs[TFMFILEPATH] = kpse_init_format (kpse_tfm_format);
  3362.   
  3363.     if (path_bits & VFFILEPATHBIT)
  3364. !     path_dirs[VFFILEPATH] = kpse_init_format (kpse_vf_format);
  3365.   }
  3366.   
  3367. ***************
  3368. *** 72,76 ****
  3369.   {
  3370.     string found;  
  3371. !   string path = path_dirs[path_index];
  3372.     
  3373.     make_c_string (&name);
  3374. --- 75,79 ----
  3375.   {
  3376.     string found;  
  3377. !   const_string path = path_dirs[path_index];
  3378.     
  3379.     make_c_string (&name);
  3380. ***************
  3381. *** 79,83 ****
  3382.        have the dpi available separately, and anyway we don't care about
  3383.        having pktogf run MakeTeXPK, etc.  */
  3384. !   found = kpse_path_search (path, name);
  3385.   
  3386.     /* If we didn't find it, and we're looking for a font, maybe it's
  3387. --- 82,86 ----
  3388.        have the dpi available separately, and anyway we don't care about
  3389.        having pktogf run MakeTeXPK, etc.  */
  3390. !   found = kpse_path_search (path, name, true);
  3391.   
  3392.     /* If we didn't find it, and we're looking for a font, maybe it's
  3393. ***************
  3394. *** 89,96 ****
  3395.       {
  3396.         string *mapped_names;
  3397. !       static map_type fontmap = NULL;
  3398.         
  3399.         /* Fault in the mapping if necessary.  */
  3400. !       if (!fontmap)
  3401.           fontmap = map_create (path);
  3402.         
  3403. --- 92,99 ----
  3404.       {
  3405.         string *mapped_names;
  3406. !       static hash_table_type fontmap = { NULL, 0 };
  3407.         
  3408.         /* Fault in the mapping if necessary.  */
  3409. !       if (fontmap.size == 0)
  3410.           fontmap = map_create (path);
  3411.         
  3412. ***************
  3413. *** 102,106 ****
  3414.             while ((mapped_name = *mapped_names++) && !found)
  3415.               {
  3416. !               found = kpse_path_search (path, mapped_name);
  3417.               }
  3418.           }
  3419. --- 105,109 ----
  3420.             while ((mapped_name = *mapped_names++) && !found)
  3421.               {
  3422. !               found = kpse_path_search (path, mapped_name, true);
  3423.               }
  3424.           }
  3425. *** web2c/lib/texmf.c.save    Sun Dec  5 12:53:01 1993
  3426. --- web2c/lib/texmf.c    Fri Sep 23 22:33:56 1994
  3427. ***************
  3428. *** 33,37 ****
  3429.   #include <kpathsea/c-ctype.h>
  3430.   #include <kpathsea/c-pathch.h>
  3431. ! #include <kpathsea/tex-make.h>
  3432.   
  3433.   /* For `struct tm'.  */
  3434. --- 33,37 ----
  3435.   #include <kpathsea/c-ctype.h>
  3436.   #include <kpathsea/c-pathch.h>
  3437. ! #include <kpathsea/tex-file.h>
  3438.   
  3439.   /* For `struct tm'.  */
  3440. ***************
  3441. *** 74,77 ****
  3442. --- 74,79 ----
  3443.     dump_default_length = strlen (dump_default + 1);
  3444.   
  3445. +   kpse_set_progname(av[0]);
  3446.   #ifndef INI
  3447.     if (readyalready != 314159)
  3448. ***************
  3449. *** 99,103 ****
  3450.                               || getenv ("USE_MAKETEXMF")
  3451.                               || getenv ("MAKETEXMF");
  3452. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_mf_format]) = use_maketexmf;
  3453.     }
  3454.   #endif /* MF */
  3455. --- 101,105 ----
  3456.                               || getenv ("USE_MAKETEXMF")
  3457.                               || getenv ("MAKETEXMF");
  3458. !     kpse_format_info[kpse_mf_format].program_enabled_p = use_maketexmf;
  3459.     }
  3460.   #endif /* MF */
  3461. ***************
  3462. *** 110,115 ****
  3463.                                || getenv ("USE_MAKETEXTFM")
  3464.                                || getenv ("MAKETEXTFM");
  3465. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tex_format]) = use_maketextex;
  3466. !     KPSE_MAKE_SPEC_ENABLED (kpse_make_specs[kpse_tfm_format]) = use_maketextfm;
  3467.     }
  3468.   #endif /* TeX */
  3469. --- 112,117 ----
  3470.                                || getenv ("USE_MAKETEXTFM")
  3471.                                || getenv ("MAKETEXTFM");
  3472. !     kpse_format_info[kpse_tex_format].program_enabled_p = use_maketextex;
  3473. !     kpse_format_info[kpse_tfm_format].program_enabled_p = use_maketextfm;
  3474.     }
  3475.   #endif /* TeX */
  3476. *** web2c/mf/Makefile.in.save    Thu Feb  3 04:48:35 1994
  3477. --- web2c/mf/Makefile.in    Sat Sep 24 02:08:29 1994
  3478. ***************
  3479. *** 46,52 ****
  3480.   libs = $(commono) $(LIBS)
  3481.   
  3482. ! x_include_flags = @x_include_flags@
  3483. ! x_lib_flags = @x_lib_flags@
  3484. ! x_extra_libs = @x_extra_libs@
  3485.   wlibs = @wlibs@
  3486.   LIBS = @LIBS@
  3487. --- 46,52 ----
  3488.   libs = $(commono) $(LIBS)
  3489.   
  3490. ! x_include_flags = @X_CFLAGS@
  3491. ! x_lib_flags = @X_LIBS@
  3492. ! x_extra_libs = @X_EXTRA_LIBS@
  3493.   wlibs = @wlibs@
  3494.   LIBS = @LIBS@
  3495. ***************
  3496. *** 72,77 ****
  3497.   # What to pass to submakes.
  3498.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  3499. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)' \
  3500. ! srcdir=$(srcdir)  
  3501.   
  3502.   
  3503. --- 72,76 ----
  3504.   # What to pass to submakes.
  3505.   makeargs=SHELL='$(SHELL)' CC='$(CC)' CFLAGS='$(CFLAGS)' \
  3506. ! LDFLAGS='$(LDFLAGS)' LIBS='$(libs)' RANLIB='$(RANLIB)' LN='$(LN)'
  3507.   
  3508.   
  3509. -- 
  3510. End of web2c.kpathsea-2.4.help
  3511.  
  3512.